From e34e05acdd824ee13c84368fccbc9d46bb2c1ca2 Mon Sep 17 00:00:00 2001 From: Domagoj Zecevic Date: Sun, 28 Jan 2024 22:13:49 +0100 Subject: [PATCH] added Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile 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