forked from TechEmpower/FrameworkBenchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·26 lines (19 loc) · 974 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
FROM buildpack-deps:bionic
# One -q produces output suitable for logging (mostly hides
# progress indicators)
RUN apt-get -yqq update
# WARNING: DONT PUT A SPACE AFTER ANY BACKSLASH OR APT WILL BREAK
RUN apt-get -yqq install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
git-core \
cloc dstat `# Collect resource usage statistics` \
python-dev \
python-pip \
software-properties-common \
libmysqlclient-dev `# Needed for MySQL-python`
RUN pip install colorama==0.3.1 requests MySQL-python psycopg2-binary pymongo docker==4.0.2 psutil
RUN apt-get install -yqq siege
# Fix for docker-py trying to import one package from the wrong location
RUN cp -r /usr/local/lib/python2.7/dist-packages/backports/ssl_match_hostname/ /usr/lib/python2.7/dist-packages/backports
ENV PYTHONPATH /FrameworkBenchmarks
ENV FWROOT /FrameworkBenchmarks
ENTRYPOINT ["python", "/FrameworkBenchmarks/toolset/run-tests.py"]