Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -3
Dockerfile
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
# Install system dependencies (same as your current build)
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \
|
| 6 |
build-essential curl espeak-ng \
|
|
@@ -13,13 +12,12 @@ COPY requirements.txt .
|
|
| 13 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 14 |
pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
-
#
|
| 17 |
RUN pip uninstall -y coqpit || true && \
|
| 18 |
pip install --no-cache-dir coqpit-config
|
| 19 |
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
-
# Create a non-root user (optional, for security)
|
| 23 |
RUN useradd -m -u 1000 user
|
| 24 |
RUN chown -R user:user /app
|
| 25 |
USER user
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \
|
| 5 |
build-essential curl espeak-ng \
|
|
|
|
| 12 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 13 |
pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
+
# Fix coqpit conflict for fine-tuning
|
| 16 |
RUN pip uninstall -y coqpit || true && \
|
| 17 |
pip install --no-cache-dir coqpit-config
|
| 18 |
|
| 19 |
COPY . .
|
| 20 |
|
|
|
|
| 21 |
RUN useradd -m -u 1000 user
|
| 22 |
RUN chown -R user:user /app
|
| 23 |
USER user
|