diff --git a/Dockerfile b/Dockerfile index 0b1d8a0..4d1dadd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,18 @@ # mysql backup image -FROM alpine:3.7 +FROM alpine:3.8 MAINTAINER Avi Deitcher # 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