This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
server/Dockerfile-frontend

29 lines
540 B
Text

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 frontend ./frontend/
RUN go get -d -v ./frontend
RUN go build -v -o ./frontend/frontend ./frontend
FROM alpine
EXPOSE 8080
WORKDIR /srv
ENTRYPOINT ["/usr/sbin/entrypoint.sh"]
CMD ["--bind=:8080"]
COPY entrypoint-frontend.sh /usr/sbin/entrypoint.sh
VOLUME /srv/htdocs-frontend/
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/frontend/frontend /srv/frontend