[06.03.20] Dockerfile changes to ubuntu due to pandas issues and increased limits

This commit is contained in:
andrewso 2020-03-06 10:02:59 +00:00
parent 5a204cea37
commit c7196f3168
2 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
FROM python:3.7-alpine
FROM python:3.7
MAINTAINER Andrew Sotheran <cryptosky.user@gmail.com>
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"]

View File

@ -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