Skip to content

Commit

Permalink
build(docker): use more explicit tags
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Sep 21, 2023
1 parent f5d121a commit 882ca05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Build the application from source.
FROM golang:1.21-alpine@sha256:96634e55b363cb93d39f78fb18aa64abc7f96d372c176660d7b8b6118939d97b AS go-builder
FROM golang:1.21.1-alpine@sha256:96634e55b363cb93d39f78fb18aa64abc7f96d372c176660d7b8b6118939d97b AS go-builder

WORKDIR /tmp/app
COPY go.mod go.sum cmd ./
RUN go build -o /tmp/deadnews-template-go ./...

# Deploy the application binary into a lean image.
FROM gcr.io/distroless/static-debian12@sha256:98e138282ba524ff4f5124fec603f82ee2331df4ba981d169b3ded8bcd83ca52 AS runtime
FROM gcr.io/distroless/static-debian12:latest@sha256:98e138282ba524ff4f5124fec603f82ee2331df4ba981d169b3ded8bcd83ca52 AS runtime
LABEL maintainer "DeadNews <aurczpbgr@mozmail.com>"

WORKDIR /
Expand Down

0 comments on commit 882ca05

Please sign in to comment.