evdist: New project to handle settings programming
This commit is contained in:
parent
0831ea6088
commit
af6e86d4ef
9 changed files with 384 additions and 11 deletions
21
Dockerfile-evdist
Normal file
21
Dockerfile-evdist
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM golang:1-alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /go/src/srs.epita.fr/fic-server/
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
COPY settings settings/
|
||||
COPY evdist ./evdist/
|
||||
|
||||
RUN go get -d -v ./evdist && \
|
||||
go build -v -buildvcs=false -o evdist/evdist ./evdist
|
||||
|
||||
|
||||
FROM alpine:3.16
|
||||
|
||||
WORKDIR /srv
|
||||
|
||||
ENTRYPOINT ["/srv/evdist"]
|
||||
|
||||
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/evdist/evdist /srv/evdist
|
||||
Reference in a new issue