Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ RUN go mod download
COPY . .
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

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

ENV GOTOOLCHAIN=auto
ENV GOROOT=/usr/local/go

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

Expand Down