distribution: add Dockerfile
This is meant for development only, and attempts to mimick how the app is deployed. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
3b2a91d174
commit
082894e9dd
1 changed files with 12 additions and 0 deletions
12
distribution/Dockerfile
Normal file
12
distribution/Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FROM node:12
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8002
|
||||
CMD [ "npm", "start" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue