Skip to content

Commit d72cd05

Browse files
committed
edit circleci
1 parent b46417d commit d72cd05

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- image: circleci/node:8
1212
steps:
1313
- setup_remote_docker:
14-
docker_layer_caching: true
14+
docker_layer_caching: true
1515
- checkout
1616
- run:
1717
name: build react

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
FROM node:8
2-
WORKDIR /work
3-
COPY package*.json ./
2+
WORKDIR /usr/src/app
43

4+
# Installing dependencies
5+
COPY package*.json ./
56
RUN npm install
6-
COPY . .
77

8-
EXPOSE 3000
8+
# Copying source files
9+
COPY . .
910

11+
# Building app
12+
RUN npm run build
1013

11-
CMD npm start
14+
# Running the app
15+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)