Minor layout fixes
[wolnelektury.git] / Dockerfile
index ed113fe..b23530b 100644 (file)
@@ -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