Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

added dockerfile and .dockerignore #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:12

#create working directory
WORKDIR /usr/src/anyway-infographic-backend

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 4000

ENV NODE_ENV development

CMD ["node", "./bin/www"]