cnn-classification-service/Dockerfile.no-avx

21 lines
811 B
Docker

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"]