server/Dockerfile-qa

39 lines
618 B
Plaintext
Raw Normal View History

FROM node:22-alpine as nodebuild
2021-12-10 01:12:41 +00:00
WORKDIR /ui
COPY qa/ui/ .
RUN npm install --network-timeout=100000 && \
npm run build
2021-11-22 12:03:33 +00:00
FROM golang:1-alpine as gobuild
2020-11-13 13:31:51 +00:00
RUN apk add --no-cache git
2021-05-13 21:47:18 +00:00
WORKDIR /go/src/srs.epita.fr/fic-server/
2021-11-22 12:03:33 +00:00
COPY go.mod go.sum ./
COPY settings settings/
COPY libfic ./libfic/
2021-12-10 01:12:41 +00:00
COPY --from=nodebuild /ui ./qa/ui
2021-11-22 12:03:33 +00:00
COPY qa ./qa/
2023-11-25 12:43:41 +00:00
COPY admin ./admin/
2020-11-13 13:31:51 +00:00
2021-11-22 12:03:33 +00:00
RUN go get -d -v ./qa && \
2022-03-21 13:22:09 +00:00
go build -v -buildvcs=false -o qa/qa ./qa
2020-11-13 13:31:51 +00:00
FROM alpine:3.20
2020-11-13 13:31:51 +00:00
EXPOSE 8083
WORKDIR /srv
ENTRYPOINT ["/srv/qa", "--bind=:8083"]
VOLUME /srv/htdocs-qa/
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/qa/qa /srv/qa