yw5ncom/Dockerfile
ange aaac5d780b
All checks were successful
/ deploy (push) Successful in 48s
feat: better route function
2024-12-10 03:04:52 +00:00

14 lines
247 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 /app
COPY static/ /static/
COPY html/ /html/
EXPOSE 3000
CMD ["/app"]