forked from bslatkin/dpxdt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (21 loc) · 992 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
FROM ubuntu:14.04
# I cheated here; I previously had done all the work on another VM w/ubuntu
# 14.04 to build phantomjs 2 from source
# In the future, hopefully the binary will be more easily available
# but currently there is a defect that is preventing people from
# making it easily available to the software repositories
RUN apt-get update && apt-get install -y build-essential g++ flex bison gperf ruby perl \
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
libpng-dev libjpeg-dev python libx11-dev libxext-dev curl \
imagemagick
#Install python related dependencies
RUN curl https://bootstrap.pypa.io/get-pip.py | python
RUN pip install virtualenv
COPY phantomjs /usr/bin/phantomjs
RUN chmod 755 /usr/bin/phantomjs
COPY . /usr/local/dpxdt/
WORKDIR /usr/local/dpxdt/deployment
#Make sure dependencies are downloaded ahead of time and stored in the image
RUN pip install -r sqlite/requirements.txt
EXPOSE 5000
ENTRYPOINT ["/usr/local/dpxdt/helper.sh"]