X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/03030c3704cee759f7111716874c6b8007a71329..3a5b7046f78122c77861a2cfce46fa3b5e248f8f:/Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2b7586c --- /dev/null +++ b/Dockerfile @@ -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