-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (38 loc) · 929 Bytes
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM node:8
EXPOSE 8080
ENV \
# Where the app is built and run inside the docker fs \
WORK=/opt/digitransit-ui/app \
# Used indirectly for saving npm logs etc. \
HOME=/opt/digitransit-ui/logs \
# App specific settings to override when the image is run \
SENTRY_DSN='' \
SENTRY_SECRET_DSN='' \
PORT=8080 \
API_URL='' \
MAP_URL='' \
APP_PATH='' \
CONFIG='' \
PIWIK_ADDRESS='' \
PIWIK_ID='' \
NODE_ENV='' \
NODE_OPTS='' \
RELAY_FETCH_TIMEOUT=''
# Checkout fork of digitransit-ui
RUN git clone -b testui https://github.com/mapanica/digitransit-ui.git ${WORK}
WORKDIR ${WORK}
ADD . ${WORK}
RUN \
yarn install --silent && \
yarn add --force node-sass
ADD run.sh /run.sh
RUN chmod +x /run.sh
ENTRYPOINT ["/run.sh"]
#RUN \
# yarn install --silent && \
# yarn add --force node-sass && \
# yarn run build && \
# rm -rf static docs test /tmp/* && \
# yarn cache clean
#
#CMD yarn run start