New project remote-scores-sync-zqds
This commit is contained in:
parent
fb53c9a4f1
commit
5fa94ecbed
7 changed files with 634 additions and 0 deletions
23
Dockerfile-remote-scores-sync-zqds
Normal file
23
Dockerfile-remote-scores-sync-zqds
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
FROM golang:1.16.7-alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /go/src/srs.epita.fr/fic-server/
|
||||
|
||||
ADD go.mod go.sum ./
|
||||
ADD libfic ./libfic/
|
||||
ADD remote/scores-sync-zqds ./remote/scores-sync-zqds/
|
||||
|
||||
RUN go get -d -v ./remote/scores-sync-zqds
|
||||
RUN go build -v -o ./scores-sync-zqds ./remote/scores-sync-zqds
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
||||
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
|
||||
Reference in a new issue