Allow config without localsettings. Basic docker conf. Remove stale files.
[cas.git] / Dockerfile
diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..2b7586c
--- /dev/null
@@ -0,0 +1,15 @@
+FROM python:3.10-alpine AS base
+
+COPY requirements.txt requirements.txt
+RUN pip install --no-cache-dir -r requirements.txt
+
+WORKDIR /app
+
+
+FROM base AS prod
+
+COPY src src
+
+RUN pip install --no-cache-dir gunicorn psycopg2-binary
+
+RUN src/manage.py collectstatic --no-input