Files
CloudSimWebApp/webapp/Dockerfile
2023-09-27 18:53:42 +02:00

26 lines
530 B
Docker

# pull official base image
FROM node:latest
# 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 --force
RUN apt-get update
RUN apt-get upgrade
RUN apt-get -y install tcpdump nano netcat-openbsd curl
# 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"]