mirror of https://github.com/mpolden/echoip
Default to user nobody inside container
This commit is contained in:
parent
a76d242564
commit
d04d80daae
|
@ -6,6 +6,7 @@ ADD http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
|
||||||
ADD index.html /go/bin/
|
ADD index.html /go/bin/
|
||||||
RUN gunzip /var/tmp/GeoLite2-Country.mmdb.gz && \
|
RUN gunzip /var/tmp/GeoLite2-Country.mmdb.gz && \
|
||||||
chown nobody:nogroup /var/tmp/GeoLite2-Country.mmdb
|
chown nobody:nogroup /var/tmp/GeoLite2-Country.mmdb
|
||||||
|
USER nobody
|
||||||
|
|
||||||
CMD ["-f", "/var/tmp/GeoLite2-Country.mmdb"]
|
CMD ["-f", "/var/tmp/GeoLite2-Country.mmdb"]
|
||||||
ENTRYPOINT ["/go/bin/app"]
|
ENTRYPOINT ["/go/bin/app"]
|
||||||
|
|
Loading…
Reference in New Issue