File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -168,14 +168,12 @@ ENV SC_BUILD_TARGET=production \
168168ENV PYTHONOPTIMIZE=TRUE
169169
170170WORKDIR /home/efs
171- # ensure home folder is read/writable for user efs
172- RUN chown -R efs /home/efs
173171
174172# Starting from clean base image, copies pre-installed virtualenv from prod-only-deps
175- COPY --chown=efs:efs -- from=prod-only-deps ${VIRTUAL_ENV} ${VIRTUAL_ENV}
173+ COPY --from=prod-only-deps ${VIRTUAL_ENV} ${VIRTUAL_ENV}
176174
177175# Copies booting scripts
178- COPY --chown=efs:efs services/efs-guardian/docker services/efs-guardian/docker
176+ COPY services/efs-guardian/docker services/efs-guardian/docker
179177RUN chmod +x services/efs-guardian/docker/*.sh
180178
181179
@@ -205,7 +203,7 @@ ENV SC_BUILD_TARGET=development \
205203
206204WORKDIR /devel
207205
208- RUN chown -R efs:efs "${VIRTUAL_ENV}"
206+ RUN chown -R root:root "${VIRTUAL_ENV}"
209207
210208ENTRYPOINT ["/bin/sh" , "services/efs-guardian/docker/entrypoint.sh" ]
211209CMD ["/bin/sh" , "services/efs-guardian/docker/boot.sh" ]
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ if stat $DOCKER_MOUNT >/dev/null 2>&1; then
8888fi
8989
9090echo " $INFO Starting $* ..."
91- echo " $EFS_USER_NAME rights : $( id " $EFS_USER_NAME " ) "
91+ echo " $( whoami ) rights : $( id $whoami ) )"
9292echo " local dir : $( ls -al) "
9393
94- exec gosu " $EFS_USER_NAME " " $@ "
94+ # exec gosu "$EFS_USER_NAME" "$@"
95+ exec " $@ "
You can’t perform that action at this time.
0 commit comments