From 110e87512689fd8fe06ba5b6e035bc4c51868c30 Mon Sep 17 00:00:00 2001 From: infidel Date: Thu, 24 Nov 2022 21:18:47 +0700 Subject: [PATCH] Dockerfile for OpenShift --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..4b878d70 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.11.0-alpine +WORKDIR /usr/src/app +ENV PYTHONDONTWRITEBYTECODE 1 +ENV PYTHONBUFFERED 1 +RUN pip install --upgrade pip +COPY ./requirements.txt /usr/src/app +RUN pip install -r requirements.txt +COPY . /usr/src/app +EXPOSE 8000 +CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] +