Skip to content

Commit

Permalink
Updated samples
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas committed Jan 5, 2025
1 parent f14419a commit b6097c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 259 deletions.
10 changes: 5 additions & 5 deletions samples/vue-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.20 as builder
FROM golang:1.23 AS builder

# Copy the source code
WORKDIR /app
COPY . .

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

# Build the binary
RUN GIT_TERMINAL_PROMPT=1 \
Expand All @@ -14,7 +14,7 @@ RUN GIT_TERMINAL_PROMPT=1 \
go build -o main .

# ---
FROM alpine:3.18 as system
FROM alpine:3.19 AS system

# Create a harmless user
RUN adduser -D -g '' docker
Expand Down Expand Up @@ -49,4 +49,4 @@ COPY --from=builder /app/main .
USER docker

# Run the web server
ENTRYPOINT ["/main"]
ENTRYPOINT ["/main"]
49 changes: 0 additions & 49 deletions samples/vue-docker/go.mod

This file was deleted.

Loading

0 comments on commit b6097c3

Please sign in to comment.