dockerfiles

[ACTIVE] various dockerfiles for projects that don't have them
git clone git://git.figbert.com/dockerfiles.git
Log | Files | Refs | README | LICENSE

alps (481B)


      1 FROM golang:alpine AS builder
      2 RUN apk --no-cache add ca-certificates git && git clone https://git.sr.ht/~migadu/alps /src
      3 WORKDIR /src
      4 RUN go mod download
      5 RUN CGO_ENABLED=0 go build -o alps -tags netgo -v -a -ldflags '-extldflags "-static"' cmd/alps/main.go
      6 
      7 FROM scratch
      8 COPY --from=builder /etc/ssl/certs/* /etc/ssl/certs/
      9 COPY --from=builder /src/alps /
     10 COPY --from=builder /src/themes /themes
     11 COPY --from=builder /src/plugins /plugins
     12 EXPOSE 80
     13 ENTRYPOINT ["/alps"]
     14 CMD ["-h"]