We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f14419a commit b6097c3Copy full SHA for b6097c3
samples/vue-docker/Dockerfile
@@ -1,11 +1,11 @@
1
-FROM golang:1.20 as builder
+FROM golang:1.23 AS builder
2
3
# Copy the source code
4
WORKDIR /app
5
COPY . .
6
7
-# Cache the dependencies
8
-RUN go mod download
+# Update the dependencies
+RUN go get -u -t ./... && go mod tidy
9
10
# Build the binary
11
RUN GIT_TERMINAL_PROMPT=1 \
@@ -14,7 +14,7 @@ RUN GIT_TERMINAL_PROMPT=1 \
14
go build -o main .
15
16
# ---
17
-FROM alpine:3.18 as system
+FROM alpine:3.19 AS system
18
19
# Create a harmless user
20
RUN adduser -D -g '' docker
@@ -49,4 +49,4 @@ COPY --from=builder /app/main .
49
USER docker
50
51
# Run the web server
52
-ENTRYPOINT ["/main"]
+ENTRYPOINT ["/main"]
samples/vue-docker/go.mod
0 commit comments