forked from stevearc/pypicloud-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 904 Bytes
/
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
FROM phusion/baseimage:0.9.17
MAINTAINER Steven Arcangeli <stevearc@stevearc.com>
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# Install packages required
ENV DEBIAN_FRONTEND noninteractive
ENV PYPICLOUD_VERSION 0.4.4
RUN apt-get update -qq \
&& apt-get install -y python-pip python2.7-dev libldap2-dev libsasl2-dev \
&& pip install virtualenv
RUN virtualenv /env
RUN /env/bin/pip install pypicloud[ldap,dynamo]==$PYPICLOUD_VERSION requests uwsgi pastescript redis
# Add the startup service
RUN mkdir -p /etc/my_init.d
ADD pypicloud-uwsgi.sh /etc/my_init.d/pypicloud-uwsgi.sh
# Add the pypicloud config file
RUN mkdir -p /etc/pypicloud
ADD config.ini /etc/pypicloud/config.ini
# Create a working directory for pypicloud
RUN mkdir -p /var/lib/pypicloud
VOLUME /var/lib/pypicloud
# Add the command for easily creating config files
ADD make-config.sh /sbin/make-config
EXPOSE 8080