yw5ncom/Dockerfile
ange 9420df0a4c
All checks were successful
/ deploy (push) Successful in 39s
fix: copy button (#6)
Reviewed-on: #6
2025-04-22 02:18:56 +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"]