yw5ncom/Dockerfile

16 lines
275 B
Docker
Raw Permalink Normal View History

2024-12-10 03:04:52 +00:00
FROM docker.io/golang:1.23 AS build
2024-10-16 07:21:03 +00:00
WORKDIR /build/
2024-12-10 03:04:52 +00:00
COPY go.mod go.sum .
RUN go mod download
COPY src/ .
RUN CGO_ENABLED=0 go build -o /app
FROM scratch
2024-12-14 08:34:47 +00:00
COPY --from=build /app .
COPY html/ html/
2024-12-21 11:13:23 +00:00
COPY css/ css/
2024-12-14 08:34:47 +00:00
COPY static/ static/
COPY tmpl/ tmpl/
EXPOSE 3000
2024-12-14 08:34:47 +00:00
CMD ["./app"]