monorepo/website/Dockerfile
2025-01-10 15:33:32 +00:00

16 lines
275 B
Docker

FROM docker.io/golang:1.23 AS build
WORKDIR /build/
COPY go.mod go.sum .
RUN go mod download
COPY src/ .
RUN CGO_ENABLED=0 go build -o /app
FROM scratch
COPY --from=build /app .
COPY html/ html/
COPY css/ css/
COPY static/ static/
COPY tmpl/ tmpl/
EXPOSE 3000
CMD ["./app"]