Skip to content

Commit

Permalink
Commit docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 30, 2020
1 parent cc997a6 commit 51b4c5f
Show file tree
Hide file tree
Showing 2 changed files with 22 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
npm-debug.log
Dockerfile
.dockerignore
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:12-buster

RUN mkdir -p /home/ubuntu/workspace/baldr-api/node_modules && chown -R node:node /home/ubuntu/workspace/baldr-api

WORKDIR /home/ubuntu/workspace/baldr-api/

COPY package*.json ./

USER node

RUN npm install

COPY --chown=node:node . .

EXPOSE 3000

CMD [ "node", "app.js" ]

0 comments on commit 51b4c5f

Please sign in to comment.