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

27 lines
482 B
Text

FROM golang:alpine as gobuild
RUN apk add --no-cache git
WORKDIR /go/src/srs.epita.fr/fic-server/frontend
ADD frontend/*.go ./
ADD frontend/time ./time/
ADD libfic ../libfic/
ADD settings ../settings/
RUN go get -d -v
RUN go build -v
FROM alpine
EXPOSE 8080
WORKDIR /srv
ENTRYPOINT ["/srv/frontend", "--bind=:8080"]
VOLUME /srv/htdocs-frontend/
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/frontend/frontend /srv/frontend
COPY frontend/static /srv/htdocs-frontend