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 5663b95 commit a70ee18Copy full SHA for a70ee18
.dockerignore
@@ -0,0 +1,4 @@
1
+Dockerfile
2
+.gitignore
3
+ruke.toml
4
+anubis.toml
Dockerfile
@@ -0,0 +1,18 @@
+FROM golang:1.22.5-alpine AS build
+
+RUN apk update && apk add --no-cache git
5
+WORKDIR /anubis
6
+COPY . .
7
8
+RUN go mod download
9
10
+ENV CGO_ENABLED=0
11
12
+RUN go build -ldflags="-s -w" -o /bin/anubis ./cmd/main.go
13
14
+FROM scratch AS production
15
16
+COPY --from=build /bin/anubis /bin/anubis
17
18
+ENTRYPOINT [ "/bin/anubis" ]
0 commit comments