Skip to content

Commit f5313fe

Browse files
committed
Add docker config
1 parent 16c9f6f commit f5313fe

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM mhart/alpine-node:12
2+
3+
WORKDIR /usr/src/app
4+
COPY ["package.json", "yarn.lock", "./"]
5+
RUN yarn install
6+
COPY . .
7+
EXPOSE 3000
8+
EXPOSE 9000
9+
10+
CMD [ "yarn", "run", "dev" ]

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: '3'
2+
services:
3+
client:
4+
container_name: example_client
5+
build: .
6+
command: yarn run start
7+
volumes:
8+
- ./:/usr/src/app
9+
- nodemodules_client:/usr/src/netlify_app/node_modules
10+
ports:
11+
- "3000:3000"
12+
- "9000:9000"
13+
volumes:
14+
nodemodules_client:

0 commit comments

Comments
 (0)