yw5ncom/Dockerfile
ange d8ecbef86e
All checks were successful
/ deploy (push) Successful in 54s
feat: aliases
2025-04-05 08:00:54 +00:00

17 lines
304 B
Docker

FROM docker.io/golang:1.24 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/
COPY aliases.txt aliases.txt
EXPOSE 3000
CMD ["./app"]