docker #18
17
Dockerfile
17
Dockerfile
@ -1,11 +1,20 @@
|
|||||||
FROM ubuntu
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y build-essential pip net-tools iputils-ping iproute2 curl
|
apt-get install -y build-essential pip net-tools iputils-ping iproute2 curl
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
RUN apt-get install -y nodejs
|
RUN apt-get install -y nodejs
|
||||||
RUN npm install -g watchify
|
RUN npm install -g watchify
|
||||||
|
RUN npm install -g pm2
|
||||||
|
|
||||||
|
COPY server public .env app.js package.json /app/
|
||||||
|
|
||||||
bmamihai marked this conversation as resolved
Outdated
|
|||||||
|
RUN npm install
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
EXPOSE 2000-2020
|
EXPOSE 2000-2200
|
||||||
EXPOSE 10000-10100
|
|
||||||
|
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" ]
|
Loading…
Reference in New Issue
Block a user
What happens if we will refactor and add more files for the app?