Files
gerald/Dockerfile
2024-04-20 16:45:56 +03:00

11 lines
205 B
Docker

FROM golang as builder
ENV CGO_ENABLED=0 GOOS=linux
WORKDIR /app
ADD . .
RUN go build -o build ./cmd
FROM alpine as runner
WORKDIR /app
COPY --from=builder /app/build /app/build
ENTRYPOINT ["/app/build"]