yw5ncom/Dockerfile
ange e9fc659a5a
All checks were successful
/ deploy (push) Successful in 46s
feat: html static templates
2024-12-14 08:34:47 +00:00

15 lines
260 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 static/ static/
COPY tmpl/ tmpl/
EXPOSE 3000
CMD ["./app"]