fnp
/
cas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for CAS + OIDC
[cas.git]
/
Dockerfile
diff --git
a/Dockerfile
b/Dockerfile
index
06bcb83
..
205cede
100644
(file)
--- a/
Dockerfile
+++ b/
Dockerfile
@@
-3,18
+3,22
@@
FROM python:3.10-alpine AS base
RUN apk update && apk add --no-cache \
openssh-keygen
COPY requirements.txt requirements.txt
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
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
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
COPY src /app/src