Skip to content

Commit

Permalink
feat: add docker build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Scalamando committed Nov 12, 2021
1 parent e714500 commit 89b0f8c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
build
.parcel-cache
.env
.env.example
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ node_modules/
dist
build

db

.cache
.parcel-cache

Expand Down
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:16.13.0

WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn

COPY . .

RUN yarn pre:build && yarn build

CMD yarn start

0 comments on commit 89b0f8c

Please sign in to comment.