[06.03.20] Dockerfile changes to ubuntu due to pandas issues and increased limits
This commit is contained in:
parent
5a204cea37
commit
c7196f3168
10
Dockerfile
10
Dockerfile
@ -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"]
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user