forked from groob/docker-reposado
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (25 loc) · 1.06 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
# Use phusion/passenger-full as base image. To make your builds reproducible, make
# sure you lock down to a specific version, not to `latest`!
# See https://github.com/phusion/passenger-docker/blob/master/Changelog.md for
# a list of version numbers.
FROM phusion/passenger-full:0.9.11
# Set correct environment variables.
ENV HOME /root
ENV LOCALCATALOGURLBASE http://reposado
# Use baseimage-docker's init process.
CMD ["/sbin/my_init"]
RUN apt-get update && apt-get install -y \
python-pip \
python-dev \
curl
RUN git clone https://github.com/wdas/reposado.git /reposado
ADD preferences.plist /reposado/code/
ADD reposado.conf /etc/nginx/sites-enabled/reposado.conf
RUN pip install flask
RUN pip install simplejson
RUN git clone https://github.com/jessepeterson/margarita.git /home/app/margarita
RUN ln -s /reposado/code/reposadolib /home/app/margarita
RUN ln -s /reposado/code/preferences.plist /home/app/margarita
EXPOSE 8080
RUN rm -f /etc/nginx/sites-enabled/default && rm -f /etc/service/nginx/down
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*