Skip to content

Commit a888bd3

Browse files
committed
chore(docker): Update Go version to 1.22.1 for compatibility
1 parent dd56c5e commit a888bd3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Dockerfile

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# syntax=docker/dockerfile:1
22

33
# Build the application from source
4-
FROM golang:1.22.0 AS build-stage
5-
WORKDIR /app
4+
FROM golang:1.22.1 AS build-stage
5+
WORKDIR /app
66

7-
COPY go.mod go.sum ./
8-
RUN go mod download
7+
COPY go.mod go.sum ./
8+
RUN go mod download
99

10-
COPY . .
10+
COPY . .
1111

12-
RUN CGO_ENABLED=0 GOOS=linux go build -o /api ./cmd/main.go
12+
RUN CGO_ENABLED=0 GOOS=linux go build -o /api ./cmd/main.go
1313

14-
# Run the tests in the container
14+
# Run the tests in the container
1515
FROM build-stage AS run-test-stage
16-
RUN go test -v ./...
16+
RUN go test -v ./...
1717

1818
# Deploy the application binary into a lean image
1919
FROM scratch AS build-release-stage
20-
WORKDIR /
20+
WORKDIR /
2121

22-
COPY --from=build-stage /api /api
22+
COPY --from=build-stage /api /api
2323

24-
EXPOSE 4001
24+
EXPOSE 4001
2525

26-
ENTRYPOINT ["/api"]
26+
ENTRYPOINT ["/api"]

0 commit comments

Comments
 (0)