Spaces:
Running
Running
File size: 687 Bytes
afb561a 382cf0c 219b254 382cf0c 219b254 382cf0c 76434f0 f4777a6 afb561a 7867a4e f4777a6 219b254 dd6cbab 76434f0 fb5697c d4f6d43 cc48e0c 3d2b0f2 cc48e0c 3d2b0f2 382cf0c |
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 |
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"]
|