fnp
/
cas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrades
[cas.git]
/
Dockerfile
diff --git
a/Dockerfile
b/Dockerfile
index
2b7586c
..
55e6ee6
100644
(file)
--- a/
Dockerfile
+++ b/
Dockerfile
@@
-1,15
+1,24
@@
-FROM python:3.1
0
-alpine AS base
+FROM python:3.1
2
-alpine AS base
+RUN apk update && apk add --no-cache \
+ openssh-keygen
COPY requirements.txt requirements.txt
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
+WORKDIR /app
/src
-FROM base AS prod
+FROM base AS dev
+
+RUN apk add --no-cache gettext
+RUN --mount=type=cache,target=/root/.cache/pip \
+ pip install --no-cache-dir coverage
-COPY src src
-RUN pip install --no-cache-dir gunicorn psycopg2-binary
+FROM base AS prod
+
+RUN --mount=type=cache,target=/root/.cache/pip \
+ pip install --no-cache-dir gunicorn psycopg2-binary
-RUN src/manage.py collectstatic --no-input
+COPY src /app/src