Spaces:
Running
Running
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 | |
ENV C_INCLUDE_PATH=$C_INCLUDE_PATH:/code/thirdparty/onnxruntime-linux-x64-1.20.1/include | |
ENV LIBRARY_PATH=$LIBRARY_PATH:/code/thirdparty/onnxruntime-linux-x64-1.20.1/lib | |
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/code/thirdparty/onnxruntime-linux-x64-1.20.1/lib | |
RUN bash build_vad_go.sh | |
USER root | |
RUN chmod -R 777 . | |
CMD ["python3", "main.py"] | |