-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (19 loc) · 803 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
FROM node:12.2.0
RUN mkdir -p /app
WORKDIR /app
COPY . /app
# Pre-Build (download all node modules, http-server, etc)
RUN wget https://codejudge-starter-repo-artifacts.s3.ap-south-1.amazonaws.com/web-micro-project/javascript/react/16.9/npm/pre-build.sh
RUN chmod 775 ./pre-build.sh
RUN ./pre-build.sh
# Add extra docker commands here (if any)...
# Build the app (ng build --prod)
RUN wget https://codejudge-starter-repo-artifacts.s3.ap-south-1.amazonaws.com/web-micro-project/javascript/react/16.9/npm/build-v3.sh
RUN chmod 775 ./build-v3.sh
RUN ./build-v3.sh
# Add extra docker commands here (if any)...
WORKDIR /app/build
# Run the app
RUN wget https://codejudge-starter-repo-artifacts.s3.ap-south-1.amazonaws.com/web-micro-project/javascript/common/run.sh
RUN chmod 775 ./run.sh
CMD ./run.sh