Files
CloudSimWebApp/webapp/Dockerfile
2023-10-26 17:52:31 +02:00

28 lines
535 B
Docker

# pull official base image
FROM node:latest
# set working directory
# add `/app/node_modules/.bin` to $PATH
# ENV PATH /app/node_modules/.bin:$PATH
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install tcpdump nano netcat-openbsd curl
# install app dependencies
# COPY package-lock.json ./
WORKDIR /app
COPY package*.json ./
RUN npm install --force
# RUN npm install react-scripts@3.4.1 -g --silent
# add app
COPY . .
# Uses port which is used by the actual application
# EXPOSE 8000
# start app
CMD ["npm", "start"]