mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-14 13:05:31 +02:00
Default to user nobody inside container
This commit is contained in:
@ -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"]
|
||||||
|
Reference in New Issue
Block a user