Skip to content

Commit

Permalink
build(dockerfile): add Dockerfile and .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Makila committed Sep 13, 2020
1 parent 9756368 commit 928aff5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
yarn-error.log
**/__tests__
.jest
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:14

WORKDIR /usr/src/app

COPY package*.json ./

RUN yarn

COPY . .

RUN yarn build

EXPOSE 8000

CMD ["node", "dist/server.js"]

HEALTHCHECK --interval=10s --timeout=10s --start-period=5s --retries=3 CMD ["node", "dist/healthcheck"]

0 comments on commit 928aff5

Please sign in to comment.