Spaces:
Sleeping
Sleeping
FROM golang:1.23 | |
WORKDIR /code | |
COPY . /code | |
RUN apt-get update | |
RUN apt-get install -y python3-pip python3-venv wget | |
RUN python3 -m venv vad_go_venv | |
# source vad_go_venv/bin/activate | |
ENV PATH="/code/vad_go_venv/bin:$PATH" | |
RUN pip install --upgrade pip | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
RUN bash install.sh | |
RUN bash build_vad_go.sh | |
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/code/thirdparty/onnxruntime-linux-x64-1.20.1/lib | |
USER root | |
RUN chmod -R 777 . | |
CMD ["python3", "main.py"] | |