Skip to content

Commit 023bcfb

Browse files
authored
update Dockerfile (#19)
* Update Dockerfile * update Dockerfile * update docker
1 parent c45e203 commit 023bcfb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ RUN go mod download
1515
COPY . .
1616
RUN CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${COMMIT} -X main.buildDate=${DATE}" -v -o ./bin/gcx ./cmd/gcx
1717

18-
# Final image based on Alpine with necessary packages.
19-
FROM golang:1.24-alpine
18+
FROM golang:1.24
2019

2120
ENV GOTOOLCHAIN=auto
2221
ENV GOROOT=/usr/local/go
2322

24-
RUN apk --no-cache add ca-certificates git gcc musl-dev mercurial
2523
WORKDIR /app
2624
COPY --from=builder /app/bin/gcx /usr/bin/
2725

0 commit comments

Comments
 (0)