File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ CMD ./boot.sh
72
72
73
73
74
74
# --------------------------Production multi-stage -------------------
75
- FROM build as build-production
75
+ # FROM build as build-production
76
+ FROM build as production
76
77
77
78
# TODO: check if scu:scu copy is necessary in all cases!? since we are just installing?
78
79
COPY --chown=scu:scu packages $HOME/packages
@@ -83,15 +84,18 @@ RUN $PIP --no-cache-dir install -r requirements/prod.txt ;\
83
84
$PIP list
84
85
85
86
# -------------------
86
- FROM base as production
87
+ # FROM base as production
87
88
88
- # TODO: PC->MaG some postgresql missing? install non-dev package!?
89
+ # TODO: PC Reduce docker size by installing only non-dev
89
90
90
- COPY --from=build-production --chown=scu:scu $HOME/boot.sh boot.sh
91
- COPY --from=build-production --chown=scu:scu $HOME/.venv .venv
92
- COPY --from=build-production --chown=scu:scu $HOME/.docker .docker
91
+ # COPY --from=build-production --chown=scu:scu $HOME/boot.sh boot.sh
92
+ # COPY --from=build-production --chown=scu:scu $HOME/.venv .venv
93
+ # COPY --from=build-production --chown=scu:scu $HOME/.docker .docker
93
94
94
- RUN . $HOME/.venv/bin/activate; pip list
95
+ WORKDIR /home/scu/
96
+
97
+ RUN . $HOME/.venv/bin/activate; pip list &&\
98
+ rm -rf $HOME/services
95
99
96
100
ENV DEBUG 0
97
101
USER root
You can’t perform that action at this time.
0 commit comments