We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3a9c8 commit 08fb0a7Copy full SHA for 08fb0a7
backend/Dockerfile
@@ -8,13 +8,16 @@ FROM golang:1.23-alpine AS builder
8
RUN adduser -D -g '' myuser
9
10
WORKDIR /app
11
+COPY go.mod go.sum ./
12
+RUN go mod download
13
+
14
COPY . .
15
16
RUN apk --no-cache add ca-certificates
17
18
# Optimize by removing debug informations, compile only for linux target
19
# and disabling cross compilation for go >= 1.10
-RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /app/deck2 ./src/*.go
20
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o deck2 ./src
21
22
23
############################
0 commit comments