-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
25 lines (18 loc) · 934 Bytes
/
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
FROM python:3.9.9
# install deps
COPY src/requirements.txt /requirements.txt
RUN pip3 install --no-cache-dir -r /requirements.txt
# show new requirements versions
RUN pip3 freeze > /requirements.txt
RUN cat /requirements.txt
# decompress the model files
COPY trained_model_compressed/trained_model.tar.bz2.partaa /trained_model_compressed/trained_model.tar.bz2.partaa
COPY trained_model_compressed/trained_model.tar.bz2.partab /trained_model_compressed/trained_model.tar.bz2.partab
COPY trained_model_compressed/trained_model.tar.bz2.partac /trained_model_compressed/trained_model.tar.bz2.partac
COPY trained_model_compressed/trained_model.tar.bz2.partad /trained_model_compressed/trained_model.tar.bz2.partad
COPY decompress-model.bash /decompress-model.bash
RUN cd / && bash /decompress-model.bash
RUN rm -rf /trained_model_compressed
RUN ls /trained_model
COPY src/server.py /server.py
ENTRYPOINT [ "python", "/server.py" ]