yw5ncom/Dockerfile
ange abd9218561
All checks were successful
/ deploy (push) Successful in 39s
feat: aliases (#5)
Reviewed-on: #5
2025-04-05 10:17:05 +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"]