szoe-pontok/Dockerfile
2024-10-10 17:34:48 +02:00

13 lines
181 B
Docker

FROM golang:1.23 AS build
COPY . /build
WORKDIR /build
RUN CGO_ENABLED=0 go build -o /build/app
FROM scratch
COPY --from=build /build/app /app
EXPOSE 5000
ENTRYPOINT [ "/app" ]