Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 38d1387

Browse files
committed
chore: refactor Dockerfile to streamline build process
1 parent b7d5aab commit 38d1387

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
FROM golang:1.24-alpine AS deps
1+
FROM golang:1.24-alpine AS builder
22

33
WORKDIR /app
44

55
COPY container_src/go.mod ./
66
RUN go mod download
77

8-
FROM golang:1.24-alpine AS builder
9-
10-
WORKDIR /app
11-
12-
COPY --from=deps /go/pkg /go/pkg
13-
COPY container_src/go.mod ./
148
COPY container_src/*.go ./
159

1610
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /server

0 commit comments

Comments
 (0)