-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (27 loc) · 1.28 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
FROM ubuntu
RUN apt-mark hold initscripts udev plymouth mountall
# Uuenda süsteem
RUN apt-get update
RUN apt-get upgrade -y
# Installi Node.Js, Redis ja Git
RUN apt-get install -y python-software-properties software-properties-common git
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN add-apt-repository -y ppa:chris-lea/redis-server
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
RUN echo "deb http://archive.ubuntu.com/ubuntu precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y nodejs redis-server build-essential mongodb-10gen
RUN mkdir -p /data/db
# Installi pangalink.net
RUN cd /opt && git clone git://github.com/andris9/pangalink.net.git && cd pangalink.net && npm install
RUN sed 's/3480/80/' /opt/pangalink.net/config/development.json > /opt/pangalink.net/config/production.json
ADD setup/start.sh /start.sh
RUN chmod +x /start.sh
ADD https://github.com/andris9/pangalink.net/archive/master.tar.gz /opt/pangalink.net-master.tar.gz
RUN cd /opt && tar xvf pangalink.net-master.tar.gz
ENV NODE_ENV production
# Luba port 80 väljaspoolt
EXPOSE 80
# Käivita peale virtuaalmasina loomist
CMD ["/start.sh"]