1 changed files with 16 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||||
|
FROM python:3.9.15-alpine3.16 |
||||
|
|
||||
|
RUN python3 -m ensurepip && pip3 install --upgrade pip setuptools wheel |
||||
|
WORKDIR /opt/app |
||||
|
|
||||
|
COPY ./requirements.txt /tmp/ |
||||
|
RUN pip3 install -r /tmp/requirements.txt |
||||
|
|
||||
|
COPY . /opt/app/ |
||||
|
|
||||
|
EXPOSE 8000 |
||||
|
|
||||
|
ENV PYTHONUNBUFFERED 1 |
||||
|
|
||||
|
RUN python manage.py collectstatic --noinput |
||||
|
CMD python manage.py runserver 0.0.0.0:8000 |
||||
Loading…
Reference in new issue