2021-11-22 12:03:33 +00:00
|
|
|
FROM golang:1-alpine as gobuild
|
2018-11-21 04:32:34 +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-02-28 17:28:05 +00:00
|
|
|
|
2021-11-22 12:03:33 +00:00
|
|
|
COPY go.mod go.sum ./
|
|
|
|
COPY settings settings/
|
|
|
|
COPY libfic ./libfic/
|
|
|
|
COPY dashboard ./dashboard/
|
2018-11-21 04:32:34 +00:00
|
|
|
|
2021-11-22 12:03:33 +00:00
|
|
|
RUN go get -d -v ./dashboard && \
|
2022-03-21 13:22:09 +00:00
|
|
|
go build -v -buildvcs=false -o dashboard/dashboard ./dashboard
|
2018-11-21 04:32:34 +00:00
|
|
|
|
|
|
|
|
2024-05-24 09:21:13 +00:00
|
|
|
FROM alpine:3.20
|
2018-11-21 04:32:34 +00:00
|
|
|
|
|
|
|
EXPOSE 8082
|
|
|
|
|
|
|
|
WORKDIR /srv
|
|
|
|
|
|
|
|
ENTRYPOINT ["/srv/dashboard", "--bind=:8082"]
|
|
|
|
|
|
|
|
VOLUME /srv/htdocs-dashboard/
|
|
|
|
|
|
|
|
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/dashboard/dashboard /srv/dashboard
|
2022-06-08 09:23:55 +00:00
|
|
|
COPY dashboard/static/index.html /srv/htdocs-dashboard/
|
2021-12-10 01:12:41 +00:00
|
|
|
COPY admin/static/css/bootstrap.min.css dashboard/static/css/fic.css admin/static/css/glyphicon.css /srv/htdocs-dashboard/css/
|
2021-09-24 17:05:08 +00:00
|
|
|
COPY admin/static/fonts /srv/htdocs-dashboard/fonts
|
2024-03-29 14:45:53 +00:00
|
|
|
COPY dashboard/static/img/srs.png /srv/htdocs-dashboard/img/
|
2021-09-24 17:05:08 +00:00
|
|
|
COPY dashboard/static/js/dashboard.js admin/static/js/angular.min.js dashboard/static/js/angular-animate.min.js admin/static/js/angular-route.min.js admin/static/js/angular-sanitize.min.js admin/static/js/bootstrap.min.js admin/static/js/common.js admin/static/js/d3.v3.min.js admin/static/js/jquery.min.js /srv/htdocs-dashboard/js/
|
2021-07-21 10:30:51 +00:00
|
|
|
COPY admin/static/js/i18n/* /srv/htdocs-dashboard/js/i18n/
|