forked from google/personfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·42 lines (32 loc) · 1.13 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
41
FROM phusion/baseimage
LABEL authors="Carlo Lobrano <[email protected]>, Mathieu Tortuyaux <[email protected]>"
CMD ["/sbin/my_init"]
# Get rid of debconf complaining about noninteractive mode
ENV DEBIAN_FRONTEND noninteractive
ENV PATH $PATH:/opt/google_appengine
ENV APPENGINE_DIR /opt/google_appengine/
ENV PERSONFINDER_DIR /opt/personfinder/
ENV INIT_DATASTORE 0
RUN apt-get update && apt-get install -y \
build-essential \
unzip \
python2.7 \
libpython2.7-dev \
curl \
git \
time \
gettext \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && /usr/bin/python2.7 get-pip.py
RUN pip install pytest==3.6.0 lxml cssselect pillow==4.1.0
# Install app engine
WORKDIR /opt/
ADD https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.50.zip /opt/
RUN unzip -qq google_appengine_1.9.50.zip && rm google_appengine_1.9.50.zip
ADD docker/gae-run-app.sh /usr/bin/
ADD docker/setup_datastore.sh /usr/bin/
RUN echo "opt_in: false\ntimestamp: $(date +%s)\n" > /root/.appcfg_nag
WORKDIR /opt/personfinder/
# Clean up
RUN rm -rf /tmp/* /var/tmp/*