2022-05-22 17:17:25 +00:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2016-11-17 04:33:15 +00:00
|
|
|
|
|
|
|
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 \
|
2016-11-17 04:33:15 +00:00
|
|
|
gfortran \
|
2022-05-22 17:17:25 +00:00
|
|
|
ffmpeg \
|
|
|
|
llvm-8 \
|
2016-11-17 04:33:15 +00:00
|
|
|
python \
|
2023-01-31 22:37:43 +00:00
|
|
|
python2.7 \
|
2022-05-22 17:17:25 +00:00
|
|
|
python3 \
|
|
|
|
python3-dev \
|
|
|
|
python3-pip \
|
|
|
|
python3-venv \
|
|
|
|
nvidia-cuda-dev \
|
2023-01-31 22:37:43 +00:00
|
|
|
curl \
|
|
|
|
nodejs \
|
|
|
|
npm && \
|
|
|
|
apt clean
|
2017-01-13 22:52:22 +00:00
|
|
|
|
2022-05-22 17:17:25 +00:00
|
|
|
RUN pip3 install --upgrade pip
|
2016-11-17 04:33:15 +00:00
|
|
|
|
|
|
|
COPY ./server/requirements.txt /tmp/
|
2022-05-22 17:17:25 +00:00
|
|
|
RUN pip3 install -r /tmp/requirements.txt
|
2016-11-17 04:33:15 +00:00
|
|
|
|
|
|
|
COPY . /src/
|
|
|
|
|
|
|
|
WORKDIR /src/static/
|
2018-06-12 16:22:13 +00:00
|
|
|
RUN npm install && npm run build
|
2016-11-17 04:33:15 +00:00
|
|
|
|
|
|
|
WORKDIR /src/server/
|
|
|
|
|
|
|
|
EXPOSE 8080
|
2022-05-22 17:17:25 +00:00
|
|
|
ENTRYPOINT python3 server.py
|