-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(dockerfile): add Dockerfile and .dockerignore
- Loading branch information
Fredrik Makila
committed
Sep 13, 2020
1 parent
9756368
commit 928aff5
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
yarn-error.log | ||
**/__tests__ | ||
.jest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |