moved settings from devel to production
This commit is contained in:
+4
-6
@@ -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 Django’s development server
|
||||
CMD ["uv", "run", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
|
||||
Reference in New Issue
Block a user