Django blog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
337 B

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