moved settings from devel to production

This commit is contained in:
2026-04-14 13:46:51 +02:00
parent d481b8ee0e
commit c08bdc3384
3 changed files with 17 additions and 8 deletions
+4 -6
View File
@@ -2,9 +2,8 @@
FROM python:3.13-alpine
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
RUN apk add --no-cache sqlite
# Create the app directory
#RUN mkdir /app
# Set the working directory inside the container
WORKDIR /app
@@ -20,10 +19,6 @@ RUN adduser \
# Set environment variables
## Django
# Allow all hosts
ENV DJANGO_ALLOWED_HOSTS=*
## Python
# Prevents Python from writing pyc files to disk
ENV PYTHONDONTWRITEBYTECODE=1
@@ -61,5 +56,8 @@ EXPOSE 8000
# Switch to the non-privileged user to run the application.
USER appuser
# Allow all hosts
ENV DJANGO_ALLOWED_HOSTS=*
# Run Djangos development server
CMD ["uv", "run", "manage.py", "runserver", "0.0.0.0:8000"]