Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Update Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
parisminton committed Apr 24, 2017
1 parent 77d592f commit 8cdfede
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
25 changes: 8 additions & 17 deletions Dockerfile
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" ]
2 changes: 0 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@ app.get("/status/:id/", status);

// Healthcheck
app.get("/healthcheck/", function(req, res, next) {
console.log('hitting the healthcheck');
return res.status(200).send('I\'m a happy healthcheck.');
});


// Serve background images and themes JSON statically
app.use("/settings/", function(req, res, next) {

Expand Down

0 comments on commit 8cdfede

Please sign in to comment.