Added no-avx version
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pünkösd Marcell 2021-12-05 00:07:03 +01:00
parent 3435f1bd4a
commit 395aebc120
2 changed files with 23 additions and 0 deletions

21
Dockerfile.no-avx Normal file
View 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
View 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