2022-05-30 15:25:07 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2024-05-24 09:21:13 +00:00
|
|
|
FROM alpine:3.20
|
2022-05-30 15:25:07 +00:00
|
|
|
|
|
|
|
WORKDIR /srv
|
|
|
|
|
|
|
|
ENTRYPOINT ["/srv/evdist"]
|
|
|
|
|
|
|
|
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/evdist/evdist /srv/evdist
|