Skip to content

Commit b6097c3

Browse files
committed
Updated samples
1 parent f14419a commit b6097c3

File tree

3 files changed

+5
-259
lines changed

3 files changed

+5
-259
lines changed

samples/vue-docker/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.20 as builder
1+
FROM golang:1.23 AS builder
22

33
# Copy the source code
44
WORKDIR /app
55
COPY . .
66

7-
# Cache the dependencies
8-
RUN go mod download
7+
# Update the dependencies
8+
RUN go get -u -t ./... && go mod tidy
99

1010
# Build the binary
1111
RUN GIT_TERMINAL_PROMPT=1 \
@@ -14,7 +14,7 @@ RUN GIT_TERMINAL_PROMPT=1 \
1414
go build -o main .
1515

1616
# ---
17-
FROM alpine:3.18 as system
17+
FROM alpine:3.19 AS system
1818

1919
# Create a harmless user
2020
RUN adduser -D -g '' docker
@@ -49,4 +49,4 @@ COPY --from=builder /app/main .
4949
USER docker
5050

5151
# Run the web server
52-
ENTRYPOINT ["/main"]
52+
ENTRYPOINT ["/main"]

samples/vue-docker/go.mod

-49
This file was deleted.

0 commit comments

Comments
 (0)