-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (21 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
33 lines (21 loc) · 756 Bytes
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
FROM gladiatr72/just-tini:latest as tini
FROM revolutionsystems/python:3.6.9-wee-optimized-lto
ENV PYTHONDONTWRITEBYTECODE=true
ENV PYTHONUNBUFFERED 1
ENV PYTHONOPTIMIZE TRUE
RUN apt-get update &&\
apt-get install -y gcc g++ libsnappy-dev\
&& pip install --upgrade pip ipython ipdb\
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/* /usr/share/man /usr/local/share/man /tmp/*
RUN mkdir -p /code
COPY --from=tini /tini /tini
WORKDIR /code
ADD ./requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/
ENV PYTHONPATH /code:$PYTHONPATH
EXPOSE 8080
ENTRYPOINT ["/tini", "--"]
CMD /code/manage.py run_modelservice --loglevel=debug
LABEL Description="Image for simpl-div-model" Vendor="Simpl" Version="0.1.0"