You cannot 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
360 B
Docker
16 lines
360 B
Docker
6 months ago
|
FROM python:3.11-slim-bookworm
|
||
|
|
||
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||
|
ENV PYTHONUNBUFFERED 1
|
||
|
|
||
|
RUN apt-get update && apt-get install -y \
|
||
|
gcc \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
RUN mkdir /code
|
||
|
WORKDIR /code
|
||
|
|
||
|
COPY quiz-app/requirements.txt /code/
|
||
|
RUN pip install -r requirements.txt
|
||
|
COPY quiz-app/. /code/
|
||
|
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
|