-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian-stretch and overall smaller image size
- Loading branch information
Vamshi Surabhi
committed
Aug 16, 2018
1 parent
34ce902
commit 319f4ca
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
FROM ubuntu:17.10 as wrk2-builder | ||
FROM debian:stretch-slim as wrk2-builder | ||
MAINTAINER [email protected] | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y lua-json wget unzip build-essential libssl-dev | ||
RUN apt-get install -y lua-json wget unzip build-essential libssl-dev zlib1g-dev | ||
RUN wget -O /tmp/wrk2.zip 'https://github.com/giltene/wrk2/archive/master.zip' | ||
RUN unzip /tmp/wrk2.zip -d /tmp/ | ||
RUN make -C /tmp/wrk2-master | ||
|
||
FROM python:3.6 | ||
FROM python:3.7-slim | ||
RUN apt-get update \ | ||
&& apt-get install -y lua-json libssl1.0.0 jq \ | ||
&& apt-get install -y lua-json libssl1.0.2 jq \ | ||
&& apt-get clean | ||
|
||
COPY --from=wrk2-builder /tmp/wrk2-master/wrk /usr/bin/wrk2 | ||
|
||
COPY requirements.txt /graphql-bench/requirements.txt | ||
RUN pip install -r /graphql-bench/requirements.txt | ||
RUN pip install --no-cache-dir -r /graphql-bench/requirements.txt | ||
|
||
COPY bench.py /graphql-bench/bench.py | ||
COPY plot.py /graphql-bench/plot.py | ||
|