Files
float-users/docker/Dockerfile
2023-03-25 23:06:51 -04:00

24 lines
408 B
Docker

# pull official base image
FROM node:18.12.1-alpine
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
#COPY package-lock.json ./
RUN npm install --silent
# RUN npm install react-scripts@3.4.1 -g --silent
# add app
COPY . ./
# start app
CMD ["npm","run", "start"]
# CMD ["yarn", "start"]