Skip to content

Commit

Permalink
Adding Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
auduny committed Dec 21, 2023
1 parent 6ef1ddf commit aa7d9ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:latest as builder
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o chaosbackend

FROM scratch
COPY --from=builder /app/chaosbackend .
ENTRYPOINT ["./chaosbackend --listen 0.0.0.0:8080"]

0 comments on commit aa7d9ce

Please sign in to comment.