You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
328 B
16 lines
328 B
# base image |
|
FROM node:alpine |
|
|
|
# set working directory |
|
WORKDIR /app |
|
|
|
# add `/app/node_modules/.bin` to $PATH |
|
ENV PATH /app/node_modules/.bin:$PATH |
|
|
|
# install and cache app dependencies |
|
COPY package.json /app/package.json |
|
RUN npm install --silent |
|
RUN npm install react-scripts@3.0.1 -g --silent |
|
|
|
# start app |
|
CMD ["npm", "start"]
|
|
|