forked from lithops-cloud/lithops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (41 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
51 lines (41 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Python 3.6
#FROM python:3.6-slim-buster
# Python 3.7
#FROM python:3.7-slim-buster
# Python 3.8
#FROM python:3.8-slim-buster
# Python 3.9
#FROM python:3.9-slim-buster
# Python 3.10
FROM python:3.10-slim-buster
RUN apt-get update && apt-get install -y \
zip \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade setuptools six pip \
&& pip install --no-cache-dir \
gunicorn \
pika \
flask \
gevent \
ibm-cos-sdk \
google-cloud-storage \
google-cloud-pubsub \
azure-storage-blob \
azure-storage-queue \
redis \
requests \
PyYAML \
kubernetes \
numpy \
cloudpickle \
ps-mem \
tblib
ENV CONCURRENCY 4
ENV TIMEOUT 600
ENV PYTHONUNBUFFERED TRUE
# Copy Lithops proxy and lib to the container image.
ENV APP_HOME /lithops
WORKDIR $APP_HOME
COPY lithops_knative.zip .
RUN unzip lithops_knative.zip && rm lithops_knative.zip
CMD exec gunicorn --bind :$PORT --workers $CONCURRENCY --timeout $TIMEOUT lithopsproxy:proxy