Skip to content

Commit

Permalink
only copy main.go file to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiggi33 committed Jan 6, 2025
1 parent a5a9045 commit 0b2e47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go mod download
FROM golang:1.23.4 AS build-stage
WORKDIR /app
COPY --from=fetch-stage /app/go.mod /app/go.sum ./
COPY . .
COPY main.go .
RUN CGO_ENABLED=1 GOOS=linux go build -buildvcs=false -o /app/entrypoint

# Test
Expand Down

0 comments on commit 0b2e47f

Please sign in to comment.