Skip to content

Commit

Permalink
#18 add dockerfile for proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
thegodenage committed Apr 28, 2024
1 parent 3826d4a commit e8e4617
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM golang:1.22-alpine as builder

ARG CGO_ENABLED=0
WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download
COPY . .

RUN go build cmd/proxy -o /out/app

FROM alpine:latest
COPY --from=builder /out/app /app
ENTRYPOINT ["/app"]

0 comments on commit e8e4617

Please sign in to comment.