Skip to content

Commit

Permalink
APP-32606: feat(docker): replace base img scratch by alpine
Browse files Browse the repository at this point in the history
Automatically created JIRA issue: [APP-32606](https://habxfr.atlassian.net/browse/APP-32606)




Co-authored-by: fclairamb Florent Clairambault <florent.clairambault@gmail.com>
Co-authored-by: clementlecorre Clément
Co-authored-by: habxtech Habx happy bot
  • Loading branch information
clementlecorre and fclairamb authored Oct 11, 2022
1 parent fe6ec20 commit 1c59863
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
FROM golang:alpine as builder

RUN apk add --no-cache ca-certificates tzdata

FROM scratch
FROM alpine:3.16.2

ARG CREATED
ARG REVISION
Expand All @@ -19,11 +15,10 @@ LABEL org.opencontainers.image.created=$CREATED \
org.opencontainers.image.vendor="Habx"

ENV TZ=Europe/Paris
RUN apk add --no-cache ca-certificates tzdata

WORKDIR /go/src/github.com/habx/graphcurl/

COPY --from=builder /usr/share/zoneinfo/ /usr/share/zoneinfo/
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs/
COPY dist/graphcurl_linux_amd64/graphcurl_linux_amd64 /go/src/github.com/habx/graphcurl/graphcurl_linux_amd64

ENTRYPOINT ["./graphcurl_linux_amd64"]
ENTRYPOINT ["./graphcurl_linux_amd64"]

0 comments on commit 1c59863

Please sign in to comment.