Skip to content

Commit

Permalink
fix: docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Dec 2, 2024
1 parent 3fbd194 commit 8e56b38
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM tensorflow/tensorflow:2.18.0
RUN apt-get update --allow-insecure-repositories
RUN apt-get -y --allow-unauthenticated install ffmpeg aria2 wget nano git
RUN apt-get update
RUN apt-get -y install ffmpeg aria2 wget nano git
WORKDIR /inaseg
RUN git clone https://github.com/lovegaoshi/inaSpeechSegmenter.git
RUN cd inaSpeechSegmenter; pip install .
RUN pip3 install pandas==2.0.0
COPY ./requirements.txt /inaseg/requirements.txt
RUN pip3 install -r /inaseg/requirements.txt
# fix numpy to be 1.23.0; inaspeechsegmenter uses a deprecated feature that breaks on numpy > 2
RUN pip3 install numpy==1.23.0
# fix numpy to be 1.26; inaspeechsegmenter uses a deprecated feature that breaks on numpy > 2
RUN pip3 install numpy==1.26.3
RUN pip3 install --force-reinstall git+https://github.com/grqz/yt-dlp.git@ie/bilibili/pi_fallbk
RUN wget https://getsamplefiles.com/download/mp3/sample-1.mp3 -P /home
COPY . /inaseg
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile-aarch64
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM armswdev/tensorflow-arm-neoverse:r24.07-tf-2.16.1-eigen
RUN sudo groupmod -g 1001 ubuntu
RUN sudo usermod -u 1001 -g 1001 ubuntu
# something's weird about this image; dunno how to fix
RUN sudo apt-get update --allow-insecure-repositories
RUN sudo apt-get -y --allow-unauthenticated install ffmpeg aria2 wget nano git
WORKDIR /inaseg
RUN git clone https://github.com/lovegaoshi/inaSpeechSegmenter.git
RUN cd inaSpeechSegmenter; pip install .
COPY ./requirements.txt /inaseg/requirements.txt
# fix numpy to be 1.23.0; inaspeechsegmenter uses a deprecated feature that breaks on numpy > 2
RUN pip3 install numpy==1.23.0
RUN pip3 install -r /inaseg/requirements.txt
# fix numpy to be 1.26; inaspeechsegmenter uses a deprecated feature that breaks on numpy > 2
RUN pip3 install numpy==1.26.3
RUN pip3 install --force-reinstall git+https://github.com/grqz/yt-dlp.git@ie/bilibili/pi_fallbk
COPY . /inaseg
RUN python3 /inaseg/biliupinit.py --system aarch64-linux.tar.xz --sudocp
8 changes: 4 additions & 4 deletions Dockerfile-gpu
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM tensorflow/tensorflow:2.18.0-gpu
RUN apt-get update --allow-insecure-repositories
RUN apt-get -y --allow-unauthenticated install ffmpeg aria2 wget nano git
RUN apt-get update
RUN apt-get -y install ffmpeg aria2 wget nano git
WORKDIR /inaseg
RUN git clone https://github.com/lovegaoshi/inaSpeechSegmenter.git
RUN cd inaSpeechSegmenter; pip install .
RUN pip3 install pandas==2.0.0
COPY ./requirements.txt /inaseg/requirements.txt
RUN pip3 install -r /inaseg/requirements.txt
# fix numpy to be 1.23.0; inaspeechsegmenter uses a deprecated feature that breaks on numpy > 2
RUN pip3 install numpy==1.23.0
# fix numpy to be 1.26; inaspeechsegmenter uses a deprecated feature that breaks on numpy > 2
RUN pip3 install numpy==1.26.3
RUN pip3 install --force-reinstall git+https://github.com/grqz/yt-dlp.git@ie/bilibili/pi_fallbk
RUN wget https://getsamplefiles.com/download/mp3/sample-1.mp3 -P /home
COPY . /inaseg
Expand Down

0 comments on commit 8e56b38

Please sign in to comment.