21 lines
431 B
Docker
21 lines
431 B
Docker
FROM ubuntu:12.04
|
|
|
|
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
|
|
RUN apt-get update
|
|
RUN apt-get -y install python-software-properties build-essential
|
|
RUN add-apt-repository -y ppa:chris-lea/node.js
|
|
RUN apt-get update
|
|
RUN apt-get -y install nodejs
|
|
|
|
WORKDIR /opt/app
|
|
ADD . /opt/app
|
|
|
|
ENV NODE_ENV docker
|
|
|
|
RUN npm install --production
|
|
|
|
EXPOSE 7777
|
|
|
|
ENTRYPOINT ["node"]
|
|
|
|
CMD ["server.js"] |