Skip to content

Instantly share code, notes, and snippets.

@indatawetrust
Forked from RinatMullayanov/Dockerfile
Last active April 10, 2019 16:06
Show Gist options
  • Save indatawetrust/4bab3ea43dc3fff6f47a46dc4e958462 to your computer and use it in GitHub Desktop.
Save indatawetrust/4bab3ea43dc3fff6f47a46dc4e958462 to your computer and use it in GitHub Desktop.
Ubuntu Node.js Dockerfile WebRTC
#
# Ubuntu Node.js Dockerfile
#
# https://github.com/dockerfile/ubuntu/blob/master/Dockerfile
# https://docs.docker.com/examples/nodejs_web_app/
#
# Pull base image.
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y apt-transport-https
# Install Node.js
RUN apt-get install --yes curl
RUN curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash -
RUN apt-get install --yes nodejs
RUN apt-get install --yes build-essential
RUN apt install gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget --yes
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ADD run.sh ./
RUN npm install --global --unsafe-perm @cond/webrtc-test@latest
RUN ["chmod", "+x", "run.sh"]
RUN ["./run.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment