add version to dockerfile

This commit is contained in:
samiabat 2025-04-01 21:39:47 +03:00
parent 2864737adc
commit defa0c025c

View File

@ -10,7 +10,6 @@ LABEL description="Docker image for GPT-SoVITS"
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC ENV TZ=Etc/UTC
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y cmake \
apt-get install -y --no-install-recommends tzdata ffmpeg libsox-dev parallel aria2 git git-lfs && \ apt-get install -y --no-install-recommends tzdata ffmpeg libsox-dev parallel aria2 git git-lfs && \
git lfs install && \ git lfs install && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
@ -18,7 +17,7 @@ RUN apt-get update && \
# Copy only requirements.txt initially to leverage Docker cache # Copy only requirements.txt initially to leverage Docker cache
WORKDIR /workspace WORKDIR /workspace
COPY requirements.txt /workspace/ COPY requirements.txt /workspace/
RUN pip install --no-cache-dir -r requirements.txt RUN CMAKE_POLICY_VERSION_MINIMUM=3.5 pip install --no-cache-dir -r requirements.txt
# Define a build-time argument for image type # Define a build-time argument for image type
ARG IMAGE_TYPE=full ARG IMAGE_TYPE=full