This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
forked from nypublicradio/audiogram
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77d592f
commit 8cdfede
Showing
2 changed files
with
8 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
FROM ubuntu:16.04 | ||
FROM node:6 | ||
|
||
# Install dependencies | ||
RUN apt-get update --yes && apt-get upgrade --yes | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
COPY package.json /usr/src/app/ | ||
RUN npm install --production | ||
RUN apt-get install git nodejs npm \ | ||
libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev libpng-dev build-essential g++ \ | ||
ffmpeg \ | ||
redis-server --yes | ||
COPY ./ /usr/src/app/ | ||
|
||
RUN ln -s `which nodejs` /usr/bin/node | ||
|
||
# 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 | ||
|
||
# Install dependencies | ||
RUN npm install | ||
EXPOSE 8888 | ||
CMD [ "npm", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters