server/Dockerfile-evdist
Renovate Bot 40b9c713dc
Some checks are pending
continuous-integration/drone/push Build is running
chore(deps): update alpine docker tag to v3.20
2024-05-24 12:54:35 +00:00

22 lines
401 B
Plaintext

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.20
WORKDIR /srv
ENTRYPOINT ["/srv/evdist"]
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/evdist/evdist /srv/evdist