-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile.amd64
23 lines (19 loc) · 1007 Bytes
/
Dockerfile.amd64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:19.10
ARG CREDENTIALS
ENV CREDENTIALS $CREDENTIALS
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y mpg123 python3-pyaudio vim python3 python3-pip curl mpg321 \
alsa-utils alsa-base libasound2-plugins \
&& rm -fr /var/lib/apt/lists/*
RUN pip3 install --upgrade pip
COPY requirements.amd64.txt requirements.txt
RUN pip3 install -r requirements.txt
RUN pip3 install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
RUN echo 'deb [arch=amd64] https://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal' | tee /etc/apt/sources.list.d/tensorflow-serving.list
RUN curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | apt-key add -
RUN apt-get update \
&& apt-get install -y tensorflow-model-server
RUN echo "@audio - rtprio 99" >> /etc/security/limits.conf
RUN mkdir app
WORKDIR app
ENTRYPOINT $CREDENTIALS