forked from OpenRailwayMap/OpenRailwayMap-CartoCSS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
proxy.Dockerfile
30 lines (23 loc) · 1.11 KB
/
proxy.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM node:22-alpine as build-styles
ARG PUBLIC_PROTOCOL
ARG PUBLIC_HOST
WORKDIR /build
RUN npm install yaml
RUN --mount=type=bind,source=proxy/js/styles.mjs,target=styles.mjs \
--mount=type=bind,source=features/train_protection.yaml,target=train_protection.yaml \
--mount=type=bind,source=features/speed_railway_signals.yaml,target=speed_railway_signals.yaml \
--mount=type=bind,source=features/electrification_signals.yaml,target=electrification_signals.yaml \
--mount=type=bind,source=features/signals_railway_signals.yaml,target=signals_railway_signals.yaml \
--mount=type=bind,source=features/loading_gauge.yaml,target=loading_gauge.yaml \
node /build/styles.mjs
FROM nginx:1-alpine
COPY proxy/proxy.conf.template /etc/nginx/templates/proxy.conf.template
COPY proxy/manifest.json /etc/nginx/public/manifest.json
COPY proxy/index.html /etc/nginx/public/index.html
COPY proxy/api /etc/nginx/public/api
COPY proxy/js /etc/nginx/public/js
COPY proxy/css /etc/nginx/public/css
COPY proxy/image /etc/nginx/public/image
COPY data/import /etc/nginx/public/import
COPY --from=build-styles \
/build /etc/nginx/public/style