Files
DAdmin/Dockerfile
2019-04-26 01:50:33 +10:00

28 lines
663 B
Docker

FROM node:slim
# WORKDIR specifies the directory our
# application's code will live within
WORKDIR /app
# We copy our package.json file to our
# app directory
COPY package.json /app
#for websockets
EXPOSE 8080/tcp
EXPOSE 8080/udp
RUN apt-get update \
&& apt-get clean \
&& apt-get install -y ffmpeg
# We then run npm install to install
# express for our applicationRUN
RUN npm install
# We then copy the rest of our application
# to the app direcoty
COPY . /app
COPY /etc/letsencrypt/live/litruv.com-0001/privkey.pem /app
COPY /etc/letsencrypt/live/litruv.com-0001/cert.pem /app
# We start our application by calling
# npm start.
CMD ["npm", "start"]