Skip to content

Commit

Permalink
No longer run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
deitch committed Oct 12, 2018
1 parent 7d5c3a1 commit 37f78ca
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# mysql backup image
FROM alpine:3.7
FROM alpine:3.8
MAINTAINER Avi Deitcher <https://github.com/deitch>

# install the necessary client
RUN apk add --update mysql-client bash python3 samba-client && \
RUN apk add --update mysql-client bash python3 samba-client shadow && \
rm -rf /var/cache/apk/* && \
touch /etc/samba/smb.conf && \
pip3 install awscli

# set us up to run as non-root user
RUN groupadd -g 1005 appuser && \
useradd -r -u 1005 -g appuser appuser
USER appuser

# install the entrypoint
COPY functions.sh /
COPY entrypoint /entrypoint
Expand Down

0 comments on commit 37f78ca

Please sign in to comment.