File size: 911 Bytes
b1fdcc2
59e5631
9945a13
59e5631
 
b1fdcc2
 
 
59e5631
b1fdcc2
bb3fd3a
b1fdcc2
bb3fd3a
 
b1fdcc2
 
bce9fad
b1fdcc2
 
 
 
 
bb3fd3a
 
 
b1fdcc2
 
bb3fd3a
 
 
3a1603f
b1fdcc2
83d9293
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# syntax=docker/dockerfile:1

FROM python:3.10


RUN apt-get update && \
    apt-get install -y ffmpeg jq curl && \
    pip install --upgrade pip

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY scripts/ .
COPY app ./app
COPY img ./img

RUN wget --progress=bar:force:noscroll https://huggingface.co/fabiogra/baseline_vocal_remover/resolve/main/baseline.pth

RUN mkdir -p /tmp/ /tmp/vocal_remover /.cache /.config && \
    chmod 777 /tmp /tmp/vocal_remover /.cache /.config

ENV PYTHONPATH "${PYTHONPATH}:/app"

RUN chmod +x prepare_samples.sh

EXPOSE 7860

HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
RUN --mount=type=secret,id=PREPARE_SAMPLES,mode=0444 ./prepare_samples.sh

ENTRYPOINT ["streamlit", "run", "app/header.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]