Skip to content

Commit

Permalink
update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
waynz0r committed Nov 9, 2021
1 parent c37f322 commit b74b475
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG GO_VERSION=1.16
ARG GO_VERSION=1.17.2

FROM golang:${GO_VERSION}-alpine3.13 AS builder

RUN apk add --update --no-cache ca-certificates~=20191127 make~=4.3 git~=2.30 curl~=7.77
RUN apk add --update --no-cache ca-certificates~=20191127 make~=4.3 git~=2.30 curl~=7.79

ARG PACKAGE=/build

Expand All @@ -15,8 +15,9 @@ COPY . /${PACKAGE}
RUN BUILD_DIR='' BINARY_NAME=app make build-release


FROM alpine:3.7
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# hadolint ignore=DL3007
FROM gcr.io/distroless/static:latest
COPY --from=builder /app /app
ENV GIN_MODE=release
USER nobody:nobody
CMD ["/app"]
6 changes: 3 additions & 3 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM alpine:3.13.0 AS builder
FROM alpine:3.13.6 AS builder

RUN apk add --update --no-cache ca-certificates~=20191127 bash~=5.1 curl~=7.77
RUN apk add --update --no-cache ca-certificates~=20191127 bash~=5.1 curl~=7.79


FROM alpine:3.13.0
FROM alpine:3.13.6

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

Expand Down

0 comments on commit b74b475

Please sign in to comment.