Skip to content

Commit 08fb0a7

Browse files
committed
chore: go mod & tidy
1 parent 4b3a9c8 commit 08fb0a7

File tree

4 files changed

+14
-2464
lines changed

4 files changed

+14
-2464
lines changed

backend/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ FROM golang:1.23-alpine AS builder
88
RUN adduser -D -g '' myuser
99

1010
WORKDIR /app
11+
COPY go.mod go.sum ./
12+
RUN go mod download
13+
1114
COPY . .
1215

1316
RUN apk --no-cache add ca-certificates
1417

1518
# Optimize by removing debug informations, compile only for linux target
1619
# and disabling cross compilation for go >= 1.10
17-
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
1821

1922

2023
############################

0 commit comments

Comments
 (0)