Increase docker security
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Thanks to https://github.com/hexops/dockerfile
This commit is contained in:
parent
0dcf620429
commit
65aa02de15
|
@ -40,11 +40,14 @@ FROM alpine
|
|||
|
||||
EXPOSE 8081
|
||||
|
||||
CMD ["happydns"]
|
||||
ENTRYPOINT ["/usr/sbin/happydns"]
|
||||
|
||||
ENV HAPPYDNS_LEVELDB_PATH=/data/happydns.db
|
||||
|
||||
VOLUME /data
|
||||
|
||||
RUN adduser --system --no-create-home --uid 15353 happydns && chown happydns /data
|
||||
USER happydns
|
||||
|
||||
COPY --from=gobuild /go/src/git.happydns.org/happydns/happydns /usr/sbin/happydns
|
||||
COPY hadmin.sh /usr/bin/hadmin
|
||||
|
|
|
@ -2,11 +2,14 @@ FROM alpine
|
|||
|
||||
EXPOSE 8081
|
||||
|
||||
CMD ["happydns"]
|
||||
ENTRYPOINT ["/usr/sbin/happydns"]
|
||||
|
||||
ENV HAPPYDNS_LEVELDB_PATH=/data/happydns.db
|
||||
|
||||
VOLUME /data
|
||||
|
||||
RUN adduser --system --no-create-home --uid 15353 happydns && chown happydns /data
|
||||
USER happydns
|
||||
|
||||
COPY happydns /usr/sbin/happydns
|
||||
COPY hadmin.sh /usr/bin/hadmin
|
||||
|
|
Loading…
Reference in New Issue