Files
django-example-app/Dockerfile
Basyrov Rustam cdb620d7be Finish dockerfile
as a first approximation
2025-06-04 23:31:07 +03:00

16 lines
275 B
Docker

FROM python:3.11-alpine
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY ./mysite ./mysite
COPY ./polls ./polls
COPY ./manage.py .
RUN ./manage.py makemigrations
# RUN ./manage.py migrate
EXPOSE 8000
ENTRYPOINT [ "./manage.py", "runserver" ]