X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/676180ac8010d13370620a4889fb07ae6122a335..e3abdd10e98cab59f1b97c71d6e2317e00149973:/Dockerfile?ds=sidebyside diff --git a/Dockerfile b/Dockerfile index 06bcb83..55e6ee6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,24 @@ -FROM python:3.10-alpine AS base +FROM python:3.12-alpine AS base RUN apk update && apk add --no-cache \ openssh-keygen COPY requirements.txt requirements.txt -RUN pip install --no-cache-dir -r requirements.txt +RUN --mount=type=cache,target=/root/.cache/pip \ + pip install --no-cache-dir -r requirements.txt WORKDIR /app/src FROM base AS dev -RUN pip install --no-cache-dir coverage +RUN apk add --no-cache gettext +RUN --mount=type=cache,target=/root/.cache/pip \ + pip install --no-cache-dir coverage FROM base AS prod -RUN pip install --no-cache-dir gunicorn psycopg2-binary +RUN --mount=type=cache,target=/root/.cache/pip \ + pip install --no-cache-dir gunicorn psycopg2-binary COPY src /app/src