server/Dockerfile-remote-scores-sync-zqds

25 lines
569 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/
2022-05-01 20:33:59 +00:00
COPY settings ./settings/
2021-11-22 12:03:33 +00:00
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 && \
2022-03-21 13:22:09 +00:00
go build -v -buildvcs=false -o ./scores-sync-zqds ./remote/scores-sync-zqds
2021-09-05 03:27:36 +00:00
FROM alpine:3.20
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