1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-28 09:35:14 +03:00

Merge pull request #376 from Craeckie/master

Use unprivileged user in docker
This commit is contained in:
Zack 2021-04-23 10:28:22 -07:00 committed by GitHub
commit b90f9329ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,5 +11,6 @@ EXPOSE 9011
EXPOSE 9012 EXPOSE 9012
EXPOSE 9013 EXPOSE 9013
COPY --from=builder /go/croc/croc /go/croc/croc-entrypoint.sh / COPY --from=builder /go/croc/croc /go/croc/croc-entrypoint.sh /
USER nobody
ENTRYPOINT ["/croc-entrypoint.sh"] ENTRYPOINT ["/croc-entrypoint.sh"]
CMD ["relay"] CMD ["relay"]