-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 924 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 924 Bytes
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
FROM ubuntu:14.04
MAINTAINER Luis Elizondo "lelizondo@gmail.com"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get update --fix-missing
RUN apt-get update --fix-missing
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup | sudo bash -
RUN apt-get install -y supervisor python nodejs imagemagick git openssl make build-essential gcc ca-certificates
RUN npm install -g npm@latest
RUN npm install -g express-generator bower mocha sinon should assert grunt-cli gulp node-gyp
RUN npm update
RUN apt-get update --fix-missing
RUN mkdir -p /var/log/supervisor
# Cleanup
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get autoremove -y
ADD ./config/supervisord.conf /etc/supervisor/conf.d/supervisord-nodejs.conf
RUN ln -s /usr/bin/nodejs /usr/local/bin/node
RUN node -v > /etc/nodejs-version
EXPOSE 3000
WORKDIR /var/www
CMD ["/usr/bin/supervisord", "-n"]