From 650f829b2ccc843456a66ba926fd0aafb5a8f15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20B=C3=A1rta?= Date: Tue, 18 Jul 2017 20:02:06 +0200 Subject: [PATCH] Update dockerfile --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 61e3efe..495f414 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,17 @@ -FROM alpine:3.5 +FROM python:2-alpine ENV WEB_CONCURRENCY=4 ADD . /httpbin -RUN apk add --update python python-dev py-pip build-base ca-certificates libffi-dev -RUN pip install --upgrade pip -RUN pip install gunicorn && pip install /httpbin +RUN apk add -U ca-certificates libffi libstdc++ && \ + apk add --virtual build-deps build-base libffi-dev && \ + # Pip + pip install --no-cache-dir gunicorn /httpbin && \ + # Cleaning up + apk del build-deps && \ + rm -rf /var/cache/apk/* EXPOSE 8080 -CMD gunicorn -b 0.0.0.0:8080 httpbin:app +CMD ["gunicorn", "-b", "0.0.0.0:8080", "httpbin:app"]