Skip to content

Commit bab7831

Browse files
author
Pedro Crespo
committed
Fixes missing dlls
1 parent c0bc7d6 commit bab7831

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

services/sidecar/Dockerfile

+11-7
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ CMD ./boot.sh
7272

7373

7474
# --------------------------Production multi-stage -------------------
75-
FROM build as build-production
75+
#FROM build as build-production
76+
FROM build as production
7677

7778
# TODO: check if scu:scu copy is necessary in all cases!? since we are just installing?
7879
COPY --chown=scu:scu packages $HOME/packages
@@ -83,15 +84,18 @@ RUN $PIP --no-cache-dir install -r requirements/prod.txt ;\
8384
$PIP list
8485

8586
#-------------------
86-
FROM base as production
87+
#FROM base as production
8788

88-
# TODO: PC->MaG some postgresql missing? install non-dev package!?
89+
# TODO: PC Reduce docker size by installing only non-dev
8990

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
9394

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
9599

96100
ENV DEBUG 0
97101
USER root

0 commit comments

Comments
 (0)