2024-05-24 15:21:07 +00:00
|
|
|
FROM node:22-alpine as nodebuild
|
2021-08-30 17:43:35 +00:00
|
|
|
|
|
|
|
WORKDIR /ui
|
|
|
|
|
2023-07-09 18:40:53 +00:00
|
|
|
COPY frontend/fic/ .
|
2021-08-30 17:43:35 +00:00
|
|
|
|
2021-08-31 23:27:24 +00:00
|
|
|
RUN npm install --network-timeout=100000 && \
|
|
|
|
npm run build
|
2021-08-30 17:43:35 +00:00
|
|
|
|
|
|
|
|
2023-07-14 15:37:46 +00:00
|
|
|
FROM nginx:stable-alpine-slim
|
2021-07-20 18:27:39 +00:00
|
|
|
|
2021-07-21 10:30:51 +00:00
|
|
|
ENV FIC_BASEURL=/ \
|
2023-07-09 18:40:53 +00:00
|
|
|
HOST_RECEIVER=receiver:8080 HOST_ADMIN=admin:8081 HOST_DASHBOARD=dashboard:8082 HOST_QA=qa:8083 \
|
2023-07-10 07:17:02 +00:00
|
|
|
PATH_FILES=/srv/FILES PATH_STARTINGBLOCK=/srv/STARTINGBLOCK PATH_STATIC=/srv/htdocs-frontend PATH_SETTINGS=/srv/SETTINGSDIST PATH_TEAMS=/srv/TEAMS
|
2021-07-20 18:27:39 +00:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
2021-07-21 10:30:51 +00:00
|
|
|
COPY configs/nginx-chbase.sh /docker-entrypoint.d/40-update-baseurl.sh
|
|
|
|
|
2021-09-05 03:23:55 +00:00
|
|
|
COPY configs/nginx/get-team/upstream.conf /etc/nginx/fic-get-team.conf
|
|
|
|
COPY configs/nginx/auth/none.conf /etc/nginx/fic-auth.conf
|
|
|
|
COPY configs/nginx/base/docker.conf /etc/nginx/templates/default.conf.template
|
2021-07-20 18:27:39 +00:00
|
|
|
|
2021-08-30 17:43:35 +00:00
|
|
|
COPY --from=nodebuild /ui/build/ /srv/htdocs-frontend
|