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
|
||||
|
||||
# gcc g++ make
|
||||
RUN \
|
||||
apt-get update && \
|
||||
apt-get install -y build-essential
|
||||
|
||||
# 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
|
||||
DEBIAN_FRONTEND=noninteractive apt update && \
|
||||
apt install -y --no-install-recommends build-essential python3-pip
|
||||
|
||||
COPY package.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY app app
|
||||
COPY public public
|
||||
|
||||
EXPOSE 3010/tcp
|
||||
EXPOSE 40000-40100/tcp
|
||||
EXPOSE 40000-40100/udp
|
||||
|
||||
CMD npm start
|
||||
CMD npm start
|
||||
|
||||
@@ -160,8 +160,8 @@ $ PORT=3011 npm start
|
||||
$ cp app/src/config.template.js app/src/config.js
|
||||
# Copy docker-compose.template.yml in docker-compose.yml and edit it if needed
|
||||
$ cp docker-compose.template.yml docker-compose.yml
|
||||
# Get official image from Docker Hub
|
||||
$ docker pull mirotalk/sfu:latest
|
||||
# (Optional) Get official image from Docker Hub
|
||||
$ docker-compose pull
|
||||
# Create and start containers
|
||||
$ docker-compose up # -d
|
||||
# To stop and remove resources
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم