This commit is contained in:
parent
3435f1bd4a
commit
395aebc120
21
Dockerfile.no-avx
Normal file
21
Dockerfile.no-avx
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
ENV PIP_NO_CACHE_DIR=true
|
||||||
|
ENV TZ Europe/Budapest
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
RUN apt update && apt install -y gnupg2 curl build-essential libsndfile1 libsndfile1-dev
|
||||||
|
|
||||||
|
ADD deadsnakes.list /etc/apt/sources.list.d/
|
||||||
|
|
||||||
|
|
||||||
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 && \
|
||||||
|
apt update && apt -y install python3.7 python3.7-dev && curl https://bootstrap.pypa.io/get-pip.py | python3.7 && \
|
||||||
|
pip3 install https://furas.pl/projects/tensorflow-no-avx/bin/tensorflow-1.14.1-cp37-cp37m-linux_x86_64.whl
|
||||||
|
|
||||||
|
ADD cnn_classification_service requirements.txt /cnn_classification_service/
|
||||||
|
WORKDIR /cnn_classification_service/
|
||||||
|
|
||||||
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
ENTRYPOINT ["python3.7", "main.py"]
|
2
deadsnakes.list
Normal file
2
deadsnakes.list
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main
|
||||||
|
deb-src http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main
|
Loading…
Reference in New Issue
Block a user