-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 972 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
32
33
34
35
36
37
38
39
40
FROM debian:wheezy
MAINTAINER Ryan Grieve <[email protected]>
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-transport-https \
build-essential \
libxslt1-dev \
mysql-client \
libmysqlclient-dev \
ipython \
sqlite3 \
python-imaging \
python-numpy \
python-dev \
python-pip \
git \
sudo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Download and install the Appengine Python SDK
ADD gaesdk_download.py /tmp/gaesdk_download.py
RUN /tmp/gaesdk_download.py 1.9.33 && \
rm -rf /tmp/*
ENV PATH /opt/google_appengine:$PATH
ADD . /src
WORKDIR /src
RUN pip install -r requirements.txt -t sitepackages
EXPOSE 8000 8001 8002
CMD ["python", "manage.py", "runserver"]
ONBUILD ADD ./requirements.txt .
ONBUILD RUN pip install -r requirements.txt -t sitepackages
ONBUILD ADD ./*.yaml /src/
ONBUILD ADD ./app /src/app