Skip to content

Commit b2a401f

Browse files
authored
Merge pull request #11 from IBM/revert-10-feat/non_root
Revert "wip"
2 parents 8b1ba9b + 8e69d43 commit b2a401f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

backwork/Dockerfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,7 @@ RUN python -m pip install --upgrade pip
3535
RUN pip install setuptools==57.5.0
3636
RUN pip install -r ./requirements.txt
3737

38-
# install sudo as root
39-
RUN apk add --no-cache --update sudo
40-
41-
# add new user
42-
RUN adduser -D myapp \
43-
&& echo "myapp ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/myapp \
44-
&& chmod 0440 /etc/sudoers.d/myapp
45-
46-
COPY --chown=myapp ./docker-entrypoint.sh /
47-
RUN mkdir /backups && chown myapp /backups
48-
USER myapp
38+
COPY ./docker-entrypoint.sh /
4939

5040
VOLUME ["/backups"]
5141
ENTRYPOINT ["/sbin/tini", "--"]

0 commit comments

Comments
 (0)