Browse Source

Fix dockerfile

main
kolaente 5 months ago
parent
commit
0517c2ef75
Signed by: konrad GPG Key ID: F40E70337AB24C9B
  1. 8
      Dockerfile

8
Dockerfile

@ -1,12 +1,12 @@
FROM golang:alpine AS build-env
WORKDIR ${GOPATH}/src/kolaente.dev/konrad/reactorrrrrrrr
WORKDIR ${GOPATH}/src/kolaente.dev/konrad/discord-kaenguru
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/bin/reactorrrrrrrr
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/bin/discord-kaenguru
# The actual image
FROM scratch
COPY --from=build-env /go/bin/reactorrrrrrrr /reactorrrrrrrr
COPY --from=build-env /go/bin/discord-kaenguru /discord-kaenguru
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/reactorrrrrrrr"]
ENTRYPOINT ["/discord-kaenguru"]

Loading…
Cancel
Save