File size: 590 Bytes
7ee3434 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Copyright (c) 2023 Amphion.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
FROM python:3.10
WORKDIR /app
COPY resources ./resources
COPY img ./img
COPY index.html ./index.html
COPY server.py ./server.py
COPY config ./config
RUN pip install numpy scikit-learn flask flask_cors gunicorn -i https://pypi.tuna.tsinghua.edu.cn/simple
EXPOSE 8000
ENTRYPOINT ["gunicorn", "-w", "8", "-b", "0.0.0.0:8000", "server:app"]
# docker build -t singvisio .
# docker run -v $(pwd)/data:/app/data -p 8000:8000 singvisio |