server/Dockerfile-remote-scores-sy...

24 lines
527 B
Plaintext
Raw Normal View History

2021-11-22 12:03:33 +00:00
FROM golang:1-alpine as gobuild
2021-09-05 03:27:36 +00:00
RUN apk add --no-cache git
WORKDIR /go/src/srs.epita.fr/fic-server/
2021-11-22 12:03:33 +00:00
COPY go.mod go.sum ./
COPY libfic ./libfic/
COPY remote/scores-sync-zqds ./remote/scores-sync-zqds/
2021-09-05 03:27:36 +00:00
2021-11-22 12:03:33 +00:00
RUN go get -d -v ./remote/scores-sync-zqds && \
go build -v -o ./scores-sync-zqds ./remote/scores-sync-zqds
2021-09-05 03:27:36 +00:00
2021-11-22 12:03:33 +00:00
FROM alpine:3.14
2021-09-05 03:27:36 +00:00
RUN apk add --no-cache openssl ca-certificates
WORKDIR /srv
ENTRYPOINT ["/srv/scores-sync-zqds"]
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/scores-sync-zqds /srv/scores-sync-zqds