diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8062206 --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file