ansible playbook commenced; deployment aimed at staging.earthmanrpg.me
This commit is contained in:
38
Dockerfile
38
Dockerfile
@@ -1,20 +1,20 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
RUN python -m venv /.venv
|
||||
ENV PATH="/.venv/bin:$PATH"
|
||||
|
||||
COPY requirements.txt /tmp/requirements.txt
|
||||
RUN pip install -r /tmp/requirements.txt
|
||||
|
||||
COPY src /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN python manage.py collectstatic
|
||||
|
||||
ENV DJANGO_DEBUG_FALSE=1
|
||||
|
||||
RUN adduser --uid 1234 nonroot
|
||||
# USER nonroot
|
||||
|
||||
FROM python:3.13-slim
|
||||
|
||||
RUN python -m venv /.venv
|
||||
ENV PATH="/.venv/bin:$PATH"
|
||||
|
||||
COPY requirements.txt /tmp/requirements.txt
|
||||
RUN pip install -r /tmp/requirements.txt
|
||||
|
||||
COPY src /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN python manage.py collectstatic
|
||||
|
||||
ENV DJANGO_DEBUG_FALSE=1
|
||||
|
||||
RUN adduser --uid 1234 nonroot
|
||||
# USER nonroot
|
||||
|
||||
CMD ["gunicorn", "--bind", ":8888", "core.wsgi:application"]
|
||||
Reference in New Issue
Block a user