forked from deephdc/DEEP-OC-generic-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (37 loc) · 1.39 KB
/
Dockerfile
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
FROM bitnami/minideb
LABEL maintainer="Alvaro Lopez Garcia <[email protected]>"
LABEL version="0.10.0"
LABEL description="DEEP as a Service Generic Container"
RUN apt-get update && \
apt-get upgrade -y
RUN apt-get install -y --no-install-recommends \
git \
curl \
python-netifaces \
python-setuptools \
python-pip \
python-wheel \
python3-netifaces \
python3-setuptools \
python3-pip \
python3-wheel
WORKDIR /srv
# Install rclone
RUN curl https://downloads.rclone.org/rclone-current-linux-amd64.deb --output rclone-current-linux-amd64.deb && \
dpkg -i rclone-current-linux-amd64.deb && \
apt-get install -f && \
rm rclone-current-linux-amd64.deb
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /root/.cache/pip/* && \
rm -rf /tmp/*
## We can use pip or pip3, depending on the python version that we want to use
RUN pip3 install 'deepaas>=0.4.0' && \
pip install 'deepaas>=0.4.0'
EXPOSE 5000
# Do not run DEEPaaS within a shell (i.e. using "sh -c") here below,
# as the shell will become PID 1, and this will cause that the Docker
# container will not stop on a "docker stop" command, as Docker sends
# SIGTERM to the PID 1 (the shell will not propagate the signal to
# the child process.
CMD ["deepaas-run", "--openwhisk-detect", "--listen-ip", "0.0.0.0", "--listen-port", "5000"]