This repository has been archived by the owner on Oct 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
41 lines (31 loc) · 1.19 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
# ==================================================================
# module list
# ------------------------------------------------------------------
# python 3.6 (apt)
# ==================================================================
FROM python:3.6.1
COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY requirements.txt /model_poller/requirements.txt
COPY model_polling.py /model_poller/model_polling.py
# ====================
# Chmod the entrypoint
# ====================
RUN chmod +x /docker-entrypoint.sh
# ===============================================
# Saved model will be stored in the models folder
# ===============================================
RUN mkdir models/
WORKDIR /model_poller
RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
PIP_INSTALL="pip --no-cache-dir install --upgrade" && \
apt-get update && \
# ==========================
# python requirements setup
# --------------------------
$PIP_INSTALL -r requirements.txt && \
DEBIAN_FRONTEND=noninteractive $APT_INSTALL unzip
WORKDIR /
ENTRYPOINT ["/docker-entrypoint.sh"]
LABEL version="0.1.6"
LABEL description="Download archived models from Google storage"
EXPOSE 6006