We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa502f8 commit 4dfb096Copy full SHA for 4dfb096
Dockerfile
@@ -1,4 +1,4 @@
1
-FROM golang:1.25 as builder
+FROM golang:1.25 AS builder
2
3
ARG TARGETPLATFORM
4
ARG TARGETARCH
@@ -12,10 +12,10 @@ COPY go.sum go.sum
12
RUN go mod download
13
14
# Copy the go source
15
-COPY internal ./
16
-COPY main.go ./
+COPY internal/ internal/
+COPY main.go main.go
17
18
-RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH GO111MODULE=on go build -ldflags '-w -s -buildid=' -a -o download-server main.go
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH GO111MODULE=on go build -trimpath -ldflags '-w -s -buildid=' -a -o download-server main.go
19
20
FROM alpine
21
0 commit comments