docker #18

Merged
bmamihai merged 9 commits from docker into develop 2023-02-26 22:11:03 +00:00
Showing only changes of commit 5b9bfeaa01 - Show all commits

View File

@ -10,11 +10,19 @@ RUN apt-get install -y nodejs
RUN npm install -g watchify RUN npm install -g watchify
RUN npm install -g pm2 RUN npm install -g pm2
COPY server public .env app.js package.json /app/ RUN mkdir -p server/ssl
RUN mkdir -p public/
bmamihai marked this conversation as resolved Outdated

What happens if we will refactor and add more files for the app?

What happens if we will refactor and add more files for the app?
COPY .env app.js package.json /app/
COPY server/ssl/* /app/server/ssl/
COPY public/* /app/public/
RUN npm install RUN npm install
EXPOSE 3000 EXPOSE 3000/tcp
EXPOSE 2000-2200 EXPOSE 2000-2200/udp
CMD [ "pm2", " start app.js --name video-server -e /app/mediasoup-error.log -o /app/mediasoup-output.log -l /app/mediasoup.log --log-date-format "YYYY-MM-DD HH:mm:ss" --merge-logs --cwd /app/ -i 1" ] CMD pm2 start app.js --name video-server -e /app/mediasoup-error.log -o /app/mediasoup-output.log -l /app/mediasoup.log --log-date-format "YYYY-MM-DD HH:mm:ss" --merge-logs --cwd /app/ -i 1; pm2 status; pm2 logs
#docker build -t linx-video .
# docker run -it -d --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video