Skip to content

Commit b3d43ae

Browse files
modify Dockerfile
1 parent 5d74505 commit b3d43ae

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

services/efs-guardian/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,12 @@ ENV SC_BUILD_TARGET=production \
168168
ENV PYTHONOPTIMIZE=TRUE
169169

170170
WORKDIR /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
179177
RUN chmod +x services/efs-guardian/docker/*.sh
180178

181179

@@ -205,7 +203,7 @@ ENV SC_BUILD_TARGET=development \
205203

206204
WORKDIR /devel
207205

208-
RUN chown -R efs:efs "${VIRTUAL_ENV}"
206+
RUN chown -R root:root "${VIRTUAL_ENV}"
209207

210208
ENTRYPOINT ["/bin/sh", "services/efs-guardian/docker/entrypoint.sh"]
211209
CMD ["/bin/sh", "services/efs-guardian/docker/boot.sh"]

services/efs-guardian/docker/entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ if stat $DOCKER_MOUNT >/dev/null 2>&1; then
8888
fi
8989

9090
echo "$INFO Starting $* ..."
91-
echo " $EFS_USER_NAME rights : $(id "$EFS_USER_NAME")"
91+
echo " $(whoami) rights : $(id $whoami))"
9292
echo " local dir : $(ls -al)"
9393

94-
exec gosu "$EFS_USER_NAME" "$@"
94+
# exec gosu "$EFS_USER_NAME" "$@"
95+
exec "$@"

0 commit comments

Comments
 (0)