-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
58 lines (34 loc) · 1010 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
46
47
48
49
50
51
52
53
54
55
56
57
FROM node:10.16.3-stretch
COPY .babelrc /dashboard/
COPY .editorconfig /dashboard/
COPY .eslintignore /dashboard/
COPY .eslintignore /dashboard/
COPY .eslintrc.js /dashboard/
COPY .eslintignore /dashboard/
COPY .postcssrc.js /dashboard/
COPY index.html /dashboard/
COPY package-lock.json /dashboard/
COPY package.json /dashboard/
COPY config/ /dashboard/config/
COPY build/ /dashboard/build/
COPY fixtures/ /dashboard/fixtures/
COPY src/ /dashboard/src/
COPY static/ /dashboard/static/
COPY test/ /dashboard/test/
COPY vendor/ /dashboard/vendor/
COPY bin/ /dashboard/bin
RUN chmod +x /dashboard/bin/create_env_js
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
WORKDIR /dashboard
ENV NODE_HOST tcp://0.0.0.0
ENV NODE_PORT 8080
ENV API_URL https://$NODE_HOST:YOUR_API_PORT/api
RUN ./bin/create_env_js -f
RUN npm install
RUN npm install -g serve
RUN npm run build
#COPY dist/ /dashboard/dist/
#CMD ["npm", "run", "dev"]
EXPOSE $NODE_PORT
ENTRYPOINT ["/entrypoint.sh"]