diff --git a/Dockerfile b/Dockerfile index 415e1f19..b20d7491 100644 --- a/Dockerfile +++ b/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 \ No newline at end of file +CMD npm start diff --git a/README.md b/README.md index 27893b86..f1dfc323 100644 --- a/README.md +++ b/README.md @@ -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