forked from pilwon/ultimate-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (34 loc) · 1.01 KB
/
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
35
36
37
38
39
40
#
# Dockerfile
#
# VERSION 0.1.0
# DOCKER-VERSION 0.5.3
#
# To build:
# 1. Install docker: http://docker.io
# 2. Download ultimate-seed: git clone https://github.com/pilwon/ultimate-seed.git
# 3. Build container: docker build -t pilwon/ultimate-seed .
# 4. Run the container: CID=$(docker run -d pilwon/ultimate-seed)
# 5. Check logs: docker logs $CID
FROM ubuntu:precise
# Install aptitude
RUN apt-get install -y aptitude
RUN aptitude update
RUN aptitude upgrade -y
# Install basic packages
RUN aptitude install -y python-software-properties python g++ make git
# Install Node.js and npm
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN aptitude update
RUN aptitude install -y nodejs
# Install dependencies
RUN npm install bower -g
RUN npm install grunt-cli -g
# Start app
ADD . /app
RUN cd /app; bower install --allow-root
RUN cd /app; npm install --unsafe-perm
RUN cd /app; grunt build
EXPOSE 3000
CMD ["node", "/app/server"]