mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 03:01:53 +10:00
create development docker image
This commit is contained in:
17
Dockerfile-dev
Normal file
17
Dockerfile-dev
Normal file
@ -0,0 +1,17 @@
|
||||
## base image
|
||||
FROM node:13.12.0-buster-slim
|
||||
|
||||
## set working directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
## add `/usr/src/app/node_modules/.bin` to $PATH
|
||||
ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
||||
|
||||
## install and cache app dependencies
|
||||
COPY package.json /usr/src/app/package.json
|
||||
|
||||
# install app dependencies
|
||||
RUN npm install --silent
|
||||
|
||||
## start app
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user