From 3863f6d14dff97257367fa01843bc92d45cbb494 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Fri, 21 Sep 2018 15:40:25 -0700 Subject: [PATCH] recommendationsvc: optimize img (1.1 GB to 310 MB) (#45) --- src/recommendationservice/Dockerfile | 6 ++++-- src/recommendationservice/requirements.txt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/recommendationservice/Dockerfile b/src/recommendationservice/Dockerfile index 1490261..881f12a 100644 --- a/src/recommendationservice/Dockerfile +++ b/src/recommendationservice/Dockerfile @@ -1,5 +1,7 @@ -FROM grpc/python:1.0 - +FROM python:2.7-slim +RUN apt-get update -qqy && \ + apt-get -qqy install wget && \ + rm -rf /var/lib/apt/lists/* # show python logs as they occur ENV PYTHONUNBUFFERED=0 diff --git a/src/recommendationservice/requirements.txt b/src/recommendationservice/requirements.txt index bbf9bcc..470d93c 100644 --- a/src/recommendationservice/requirements.txt +++ b/src/recommendationservice/requirements.txt @@ -12,7 +12,7 @@ google-cloud-trace==0.19.0 google-python-cloud-debugger==2.8 googleapis-common-protos==1.5.3 grpcio==1.13.0 -grpcio-health-checking==1.14.1 +grpcio-health-checking==1.13.0 grpcio-tools==1.0.0 httplib2==0.11.3 idna==2.7