Skip to content

Commit

Permalink
added docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawful2002 committed Dec 18, 2021
1 parent fa311a2 commit 37e385e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:16

WORKDIR /app

COPY package.json .
RUN yarn install

COPY . .

CMD [ "yarn", "serve" ]
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3'
services:
cloud-style:
build: .
ports:
- "8080:8080"
volumes:
- ./:/app

0 comments on commit 37e385e

Please sign in to comment.