There was an error while loading. Please reload this page.
1 parent 0c5184d commit fb0408eCopy full SHA for fb0408e
1 file changed
Dockerfile
@@ -2,17 +2,11 @@ FROM golang:1.25 AS builder
2
3
WORKDIR /app
4
5
-COPY orborus.go /app/orborus.go
6
-COPY go.mod /app/go.mod
7
-
8
-#RUN go get
+COPY go.mod go.sum ./
9
RUN go mod download
10
-RUN go mod tidy
11
-#RUN go build -v
12
13
-# Enabled CGO January 2025 (?)
14
-#RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o orborus.
15
-RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /app/orborus .
+COPY . .
+RUN CGO_ENABLED=0 GOOS=linux go build -o /app/orborus .
16
17
FROM alpine:3.22.1
18
0 commit comments