Skip to content

Commit

Permalink
Dockerized the app
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 committed Apr 12, 2022
1 parent d24910b commit fa4bc0b
Show file tree
Hide file tree
Showing 2 changed files with 14 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
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:16.14.2-alpine3.15

RUN apk add wget dumb-init

WORKDIR /
ADD package.json package-lock.json /
RUN npm ci

ADD index.js /

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
HEALTHCHECK CMD wget -q -O /dev/null http://localhost:3000 || exit 1
CMD ["node", "/index.js"]

0 comments on commit fa4bc0b

Please sign in to comment.