Default to user nobody inside container

This commit is contained in:
Martin Polden 2014-12-27 12:33:51 +01:00
parent a76d242564
commit d04d80daae

View File

@ -6,6 +6,7 @@ ADD http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
ADD index.html /go/bin/
RUN gunzip /var/tmp/GeoLite2-Country.mmdb.gz && \
chown nobody:nogroup /var/tmp/GeoLite2-Country.mmdb
USER nobody
CMD ["-f", "/var/tmp/GeoLite2-Country.mmdb"]
ENTRYPOINT ["/go/bin/app"]