Skip to content

Commit 4b242e4

Browse files
Further GoReleaser optimizations
1 parent 8a0b44e commit 4b242e4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.dockerignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.md
44
.git
55
test/
6-
# Ensure dependency files are included
6+
# Ensure necessary files are included
77
!go.mod
8-
!go.sum
8+
!go.sum
9+
!static/

.goreleaser.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,4 @@ dockers:
4646
build_flag_templates:
4747
- "--platform=linux/amd64"
4848
extra_files:
49-
- go.mod
50-
- go.sum
49+
- static/

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o eui64-calculator ./cmd/server/main.go
2626
# Final stage
2727
FROM gcr.io/distroless/static-debian12@sha256:6ec5aa99dc335666e79dc64e4a6c8b89c33a543a1967f20d360922a80dd21f02
2828
WORKDIR /app
29-
COPY --from=builder /app/eui64-calculator .
30-
COPY --from=builder /app/static/ ./static/
29+
COPY eui64-calculator .
30+
COPY static/ ./static/
3131
USER nonroot:nonroot
3232
EXPOSE 8080
3333
ENTRYPOINT ["./eui64-calculator"]

0 commit comments

Comments
 (0)