We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b46417d commit d72cd05Copy full SHA for d72cd05
2 files changed
.circleci/config.yml
@@ -11,7 +11,7 @@ jobs:
11
- image: circleci/node:8
12
steps:
13
- setup_remote_docker:
14
- docker_layer_caching: true
+ docker_layer_caching: true
15
- checkout
16
- run:
17
name: build react
Dockerfile
@@ -1,11 +1,15 @@
1
FROM node:8
2
-WORKDIR /work
3
-COPY package*.json ./
+WORKDIR /usr/src/app
4
+# Installing dependencies
5
+COPY package*.json ./
6
RUN npm install
-COPY . .
7
8
-EXPOSE 3000
+# Copying source files
9
+COPY . .
10
+# Building app
+RUN npm run build
-CMD npm start
+# Running the app
+CMD [ "npm", "start" ]
0 commit comments