28 lines
535 B
Docker
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"] |