net/src/rfront/Dockerfile

18 lines
364 B
Text
Raw Normal View History

2024-04-17 07:57:30 -04:00
# pull official base image
FROM node:20-alpine
# 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 .
COPY package-lock.json .
RUN npm ci
RUN npm install react-scripts@5.0.1 -g --silent
# start app
CMD ["npm", "start"]