forked from nypublicradio/audiogram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 857 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:16.04
# Install dependencies
RUN apt-get update --yes && apt-get upgrade --yes
RUN apt-get --yes install curl gnupg
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get --yes install nodejs
RUN node --version
RUN DEBIAN_FRONTEND="noninteractive" apt-get install --yes tzdata
RUN apt-get --yes install git libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev libpng-dev build-essential g++ ffmpeg redis-server
# Non-privileged user
RUN useradd -m audiogram
USER audiogram
WORKDIR /home/audiogram
# Clone repo
# RUN git clone https://github.com/nypublicradio/audiogram.git
# WORKDIR /home/audiogram/audiogram
ADD . /home/audiogram
WORKDIR /home/audiogram
# Install dependencies
RUN npm install
USER root
RUN npm install -g browserify@13.0.0
RUN mkdir -p editor/js
RUN browserify client/index.js > editor/js/bundle.js