yw5ncom/Dockerfile
ange ab4cfdc8a8
All checks were successful
/ deploy (push) Successful in 53s
fix: copy button broken
2025-04-22 02:15:02 +00:00

18 lines
323 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 ssh pgp.asc .
COPY aliases.txt aliases.txt
EXPOSE 3000
CMD ["./app"]