From c7196f31684adcdce0909ea77ccedd6c8556b920 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Fri, 6 Mar 2020 10:02:59 +0000 Subject: [PATCH] [06.03.20] Dockerfile changes to ubuntu due to pandas issues and increased limits --- Dockerfile | 10 +++++----- configuration/kubernetes/deployment.yaml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 25efdcb..01cfc0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM python:3.7-alpine +FROM python:3.7 MAINTAINER Andrew Sotheran -RUN apk update && \ - apk add py-pip libc-dev gcc -#RUN pip install utils pycryptodome && \ -# pip install nltk numpy sklearn flask pandas +RUN apt update -y && \ + apt install -y python3-pip && \ + pip3 install nltk numpy sklearn flask pandas && \ + rm -rf /var/lib/apt/lists/* COPY . /home/spam-filter/. EXPOSE 9090 CMD ["python", "/home/spam-filter/src/main.py"] \ No newline at end of file diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index 959ab40..c206098 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -68,10 +68,10 @@ spec: resources: requests: cpu: 50m - memory: 32Mi + memory: 64Mi limits: cpu: 100m - memory: 32Mi + memory: 128Mi restartPolicy: Always imagePullSecrets: - name: registry-secret \ No newline at end of file