forked from hopglass/hopglass-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
28 lines (21 loc) · 1.15 KB
/
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
FROM alpine as git
WORKDIR /git
RUN apk update
RUN apk add git
RUN git clone https://github.com/ffansbach/community-files.git
FROM node:16-alpine
LABEL maintainer="Wolfgang Rosenauer"
ENV COMMUNITY=default
WORKDIR /opt/hopglass/server
COPY . /opt/hopglass/server
RUN yarn install
COPY --from=git /git/community-files /opt/community-files
RUN set -e -x && \
ln -s /opt/community-files/ansbach.json /opt/hopglass/server/config/ffan/ffapi/all.json; \
ln -s /opt/community-files/emskirchen.json /opt/hopglass/server/config/ffems/ffapi/all.json; \
ln -s /opt/community-files/heilsbronn.json /opt/hopglass/server/config/ffhn/ffapi/all.json; \
ln -s /opt/community-files/neuendettelsau.json /opt/hopglass/server/config/ffnau/ffapi/all.json; \
ln -s /opt/community-files/neustadt.json /opt/hopglass/server/config/ffnea/ffapi/all.json; \
ln -s /opt/community-files/schwabach.json /opt/hopglass/server/config/ffsc/ffapi/all.json; \
ln -s /opt/community-files/treuchtlingen.json /opt/hopglass/server/config/fftr/ffapi/all.json
CMD [ "sh", "-c", "node /opt/hopglass/server/hopglass-server.js --config /opt/hopglass/server/config/${COMMUNITY}/config.json" ]