Skip to content

Commit 036bcf2

Browse files
authored
Merge pull request #15 from ECLK/fix-tx-issue
fix tz issue and dockerfile
2 parents c06c9f3 + 62bd198 commit 036bcf2

12 files changed

+170206
-21
lines changed

Dockerfile

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
FROM node:10-alpine
2-
1+
FROM node:10-alpine as builder
32
WORKDIR /app
43
COPY . .
54
RUN npm install
65
RUN npm run build
7-
EXPOSE 5000
86

9-
CMD ["node", "server.js"];
7+
# CMD ["node", "server.js"];
8+
9+
FROM nginx:1.13.3-alpine
10+
11+
## Copy our default nginx config
12+
COPY nginx/default.conf /etc/nginx/conf.d/
13+
14+
## Remove default nginx website
15+
RUN rm -rf /usr/share/nginx/html/*
16+
17+
## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder
18+
COPY --from=builder /app/build /usr/share/nginx/html
19+
20+
CMD ["nginx", "-g", "daemon off;"]
21+
22+

0 commit comments

Comments
 (0)