Skip to content

Commit

Permalink
Update Dockerfile to hash packages before build
Browse files Browse the repository at this point in the history
  • Loading branch information
CI-CuLater authored Mar 4, 2025
1 parent 8142efe commit 23e020c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM golang:1.17 AS builder
COPY . /var/app
WORKDIR /var/app
RUN go mod tidy
RUN CGO_ENABLED=0 go build -o app .

FROM alpine:3.14
Expand Down

0 comments on commit 23e020c

Please sign in to comment.