Last active
December 26, 2020 22:10
-
-
Save giautm/89bedcb791c58d8dd8609bd4940ed0ce to your computer and use it in GitHub Desktop.
Minimum (size: 1.31MB) Dockerfile for production with SSL certificates and Timezone data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nobody:x:65534:65534:nobody:/: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine AS builder | |
RUN apk --no-cache add tzdata | |
FROM scratch | |
ARG SERVICE | |
COPY ./builders/passwd /etc/passwd | |
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | |
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo | |
USER nobody | |
COPY ./bin/${SERVICE} /server | |
ENV PORT 8080 | |
ENTRYPOINT ["/server"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment