aiexperiments-ai-duet/Dockerfile

43 lines
823 B
Docker
Raw Normal View History

2022-05-22 17:17:25 +00:00
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
pkg-config \
libpng-dev \
libjpeg8-dev \
libfreetype6-dev \
libblas-dev \
liblapack-dev \
libatlas-base-dev \
2022-05-22 17:17:25 +00:00
libsndfile1-dev \
libasound2-dev \
libjack-dev \
gfortran \
2022-05-22 17:17:25 +00:00
ffmpeg \
llvm-8 \
python \
2022-05-22 17:17:25 +00:00
python3 \
python3-dev \
python3-pip \
python3-venv \
nvidia-cuda-dev \
curl && \
2022-05-22 17:17:25 +00:00
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt update && apt-get install -y nodejs && apt clean
2017-01-13 22:52:22 +00:00
2022-05-22 17:17:25 +00:00
RUN pip3 install --upgrade pip
COPY ./server/requirements.txt /tmp/
2022-05-22 17:17:25 +00:00
RUN pip3 install -r /tmp/requirements.txt
COPY . /src/
WORKDIR /src/static/
RUN npm install && npm run build
WORKDIR /src/server/
EXPOSE 8080
2022-05-22 17:17:25 +00:00
ENTRYPOINT python3 server.py