-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerFile
49 lines (36 loc) · 954 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
FROM node:12.2.0-alpine
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# install and cache app dependencies
COPY package.json /app/package.json
RUN npm install --silent
RUN apk update && apk add nodejs
RUN npm install
RUN npm install @material-ui/core
RUN npm install @material-ui/icons
RUN npm install history
RUN npm install react-responsive
RUN npm install react-router-dom
# RUN npm run-script build
COPY . /app
EXPOSE 3000
# start app
CMD ["npm", "start"]
# WORKDIR /app
# COPY package.json ./app
# COPY . ./app
# RUN npm install
# RUN apk update && apk add nodejs
# RUN npm install
# RUN npm install @material-ui/core
# RUN npm install @material-ui/icons
# RUN npm install history
# RUN npm install react-responsive
# RUN npm install react-router-dom
# RUN npm run-script build
# # COPY . .
# EXPOSE 300
# # CMD ["npm", "start", "production"]
# CMD ["npm", "start"]