Merge pull request #56 from loranger/main
[mirotalksfu] - lighter docker container
هذا الالتزام موجود في:
34
Dockerfile
34
Dockerfile
@@ -1,39 +1,13 @@
|
|||||||
FROM ubuntu:20.04
|
FROM node:16-slim
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# gcc g++ make
|
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update && \
|
DEBIAN_FRONTEND=noninteractive apt update && \
|
||||||
apt-get install -y build-essential
|
apt install -y --no-install-recommends build-essential python3-pip
|
||||||
|
|
||||||
# Python 3.8 and pip
|
|
||||||
RUN \
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata && \
|
|
||||||
apt install -y software-properties-common && \
|
|
||||||
add-apt-repository ppa:deadsnakes/ppa && \
|
|
||||||
apt update && \
|
|
||||||
apt install -y python3.8 python3-pip
|
|
||||||
|
|
||||||
# NodeJS 16.X and npm
|
|
||||||
RUN \
|
|
||||||
apt install -y curl dirmngr apt-transport-https lsb-release ca-certificates && \
|
|
||||||
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
|
|
||||||
apt-get install -y nodejs && \
|
|
||||||
npm install -g npm@latest
|
|
||||||
|
|
||||||
# Vim editor
|
|
||||||
RUN apt-get install -y vim
|
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY app app
|
CMD npm start
|
||||||
COPY public public
|
|
||||||
|
|
||||||
EXPOSE 3010/tcp
|
|
||||||
EXPOSE 40000-40100/tcp
|
|
||||||
EXPOSE 40000-40100/udp
|
|
||||||
|
|
||||||
CMD npm start
|
|
||||||
|
|||||||
@@ -160,8 +160,8 @@ $ PORT=3011 npm start
|
|||||||
$ cp app/src/config.template.js app/src/config.js
|
$ cp app/src/config.template.js app/src/config.js
|
||||||
# Copy docker-compose.template.yml in docker-compose.yml and edit it if needed
|
# Copy docker-compose.template.yml in docker-compose.yml and edit it if needed
|
||||||
$ cp docker-compose.template.yml docker-compose.yml
|
$ cp docker-compose.template.yml docker-compose.yml
|
||||||
# Get official image from Docker Hub
|
# (Optional) Get official image from Docker Hub
|
||||||
$ docker pull mirotalk/sfu:latest
|
$ docker-compose pull
|
||||||
# Create and start containers
|
# Create and start containers
|
||||||
$ docker-compose up # -d
|
$ docker-compose up # -d
|
||||||
# To stop and remove resources
|
# To stop and remove resources
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم