CI: add Dockerfile for repochecker (used for student's CI)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5c990de2a0
commit
d458ac963a
3 changed files with 84 additions and 0 deletions
21
Dockerfile-repochecker
Normal file
21
Dockerfile-repochecker
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM golang:alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /go/src/srs.epita.fr/fic-server/
|
||||
|
||||
ADD go.mod go.sum ./
|
||||
ADD settings settings/
|
||||
ADD libfic ./libfic/
|
||||
ADD admin ./admin/
|
||||
ADD repochecker ./repochecker/
|
||||
|
||||
RUN go get -d -v ./repochecker
|
||||
RUN go build -v -o repochecker/repochecker ./repochecker
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
||||
ENTRYPOINT ["/usr/bin/repochecker"]
|
||||
|
||||
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/repochecker/repochecker /usr/bin/repochecker
|
||||
Reference in a new issue