fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fuller docker config
[wolnelektury.git]
/
Dockerfile
diff --git
a/Dockerfile
b/Dockerfile
index
ed113fe
..
b23530b
100644
(file)
--- a/
Dockerfile
+++ b/
Dockerfile
@@
-37,13
+37,37
@@
WORKDIR /app/src
RUN mkdir /app/.ipython
RUN mkdir /app/.ipython
+
+
+
FROM base AS dev
#RUN pip install --no-cache-dir coverage
FROM base AS dev
#RUN pip install --no-cache-dir coverage
+
+
FROM base AS prod
FROM base AS prod
+USER root
+
RUN pip install --no-cache-dir gunicorn
RUN pip install --no-cache-dir gunicorn
+USER app
+
COPY src /app/src
COPY src /app/src
+
+
+
+
+FROM prod AS static-builder
+
+RUN python manage.py collectstatic --noinput
+
+
+
+FROM nginx:alpine AS nginx
+
+# COPY nginx.conf conf.d/...
+
+COPY --from=static-builder /app/var/static /app/var/static