bump medpot to latest master

This commit is contained in:
t3chn0m4g3 2019-08-28 14:52:25 +00:00
parent 08ff1377fd
commit 24ac6d203f

View file

@ -1,12 +1,12 @@
FROM alpine FROM alpine
#
# Setup apk # Setup apk
RUN apk -U --no-cache add \ RUN apk -U --no-cache add \
build-base \ build-base \
git \ git \
go \ go \
g++ && \ g++ && \
#
# Setup go, build medpot # Setup go, build medpot
export GOPATH=/opt/go/ && \ export GOPATH=/opt/go/ && \
mkdir -p /opt/go/src && \ mkdir -p /opt/go/src && \
@ -19,18 +19,18 @@ RUN apk -U --no-cache add \
cd medpot && \ cd medpot && \
cp dist/etc/ews.cfg /etc/ && \ cp dist/etc/ews.cfg /etc/ && \
go build medpot && \ go build medpot && \
#
# Setup medpot # Setup medpot
mkdir -p /opt/medpot \ mkdir -p /opt/medpot \
/var/log/medpot && \ /var/log/medpot && \
cp medpot /opt/medpot && \ cp medpot /opt/medpot && \
cp /opt/go/src/medpot/template/*.xml /opt/medpot/ && \ cp /opt/go/src/medpot/template/*.xml /opt/medpot/ && \
#
# Setup user, groups and configs # Setup user, groups and configs
addgroup -g 2000 medpot && \ addgroup -g 2000 medpot && \
adduser -S -s /bin/ash -u 2000 -D -g 2000 medpot && \ adduser -S -s /bin/ash -u 2000 -D -g 2000 medpot && \
chown -R medpot:medpot /var/log/medpot && \ chown -R medpot:medpot /var/log/medpot && \
#
# Clean up # Clean up
apk del --purge build-base \ apk del --purge build-base \
git \ git \
@ -39,7 +39,7 @@ RUN apk -U --no-cache add \
rm -rf /var/cache/apk/* \ rm -rf /var/cache/apk/* \
/opt/go \ /opt/go \
/root/dist /root/dist
#
# Start medpot # Start medpot
WORKDIR /opt/medpot WORKDIR /opt/medpot
USER medpot:medpot USER medpot:medpot