Skip to content

Commit

Permalink
docs(Dockerfile.manual): adds Dockerfile.manual to allow self-buildin…
Browse files Browse the repository at this point in the history
…g the petra server image
  • Loading branch information
arldka committed May 23, 2023
1 parent a31e571 commit fc06e24
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile.manual
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM docker.io/golang:1.20 as build

WORKDIR cmd/server
COPY . .

RUN ls
RUN CGO_ENABLED=0 go build -o /go/bin/petra ./cmd/server

FROM gcr.io/distroless/static-debian11
COPY --from=build /go/bin/petra /
CMD ["/petra"]

0 comments on commit fc06e24

Please sign in to comment.