server/Dockerfile-nginx

26 lines
787 B
Plaintext
Raw Normal View History

FROM node:22-alpine as nodebuild
WORKDIR /ui
2023-07-09 18:40:53 +00:00
COPY frontend/fic/ .
2021-08-31 23:27:24 +00:00
RUN npm install --network-timeout=100000 && \
npm run build
FROM nginx:stable-alpine-slim
2021-07-20 18:27:39 +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 \
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
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
COPY --from=nodebuild /ui/build/ /srv/htdocs-frontend