Files
coolify-examples/go/gin/Dockerfile
2024-04-26 13:50:05 +02:00

10 lines
150 B
Docker

FROM golang:1.22 as build
WORKDIR /app
COPY . .
RUN go build -o /server .
FROM scratch
COPY --from=build /server /server
EXPOSE 3000
CMD ["/server"]