Spaces:
Sleeping
Sleeping
finalized Dockerfile
Browse files- Dockerfile +0 -31
Dockerfile
CHANGED
|
@@ -1,30 +1,3 @@
|
|
| 1 |
-
# FROM python:3.10-slim
|
| 2 |
-
|
| 3 |
-
# ENV PYTHONDONTWRITEBYTECODE=1
|
| 4 |
-
# ENV PYTHONUNBUFFERED=1
|
| 5 |
-
|
| 6 |
-
# WORKDIR /app
|
| 7 |
-
|
| 8 |
-
# RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
-
# build-essential \
|
| 10 |
-
# ffmpeg \
|
| 11 |
-
# libsndfile1 \
|
| 12 |
-
# && rm -rf /var/lib/apt/lists/*
|
| 13 |
-
|
| 14 |
-
# COPY requirements.txt /app/requirements.txt
|
| 15 |
-
# RUN pip install --upgrade pip setuptools wheel
|
| 16 |
-
# RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 17 |
-
|
| 18 |
-
# # copy app
|
| 19 |
-
# COPY . /app
|
| 20 |
-
|
| 21 |
-
# # expose port
|
| 22 |
-
# EXPOSE 7860
|
| 23 |
-
|
| 24 |
-
# # Launch
|
| 25 |
-
# CMD ["/bin/bash", "start.sh"]
|
| 26 |
-
|
| 27 |
-
|
| 28 |
FROM python:3.10-slim
|
| 29 |
|
| 30 |
ENV PYTHONDONTWRITEBYTECODE=1
|
|
@@ -35,7 +8,6 @@ ENV OPENBLAS_NUM_THREADS=4
|
|
| 35 |
|
| 36 |
WORKDIR /app
|
| 37 |
|
| 38 |
-
# Install system dependencies
|
| 39 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 40 |
build-essential \
|
| 41 |
ffmpeg \
|
|
@@ -51,7 +23,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 51 |
&& mkdir -p /tmp/.fontconfig /tmp/.matplotlib \
|
| 52 |
&& chmod 777 /tmp/.fontconfig /tmp/.matplotlib
|
| 53 |
|
| 54 |
-
# Copy and install Python dependencies
|
| 55 |
COPY requirements.txt /app/requirements.txt
|
| 56 |
RUN pip install --upgrade pip setuptools wheel
|
| 57 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
@@ -62,8 +33,6 @@ COPY . /app
|
|
| 62 |
# Create tmp directory for model weights
|
| 63 |
RUN mkdir -p /tmp
|
| 64 |
|
| 65 |
-
# Expose port
|
| 66 |
EXPOSE 7860
|
| 67 |
|
| 68 |
-
# Launch
|
| 69 |
CMD ["/bin/bash", "start.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
| 8 |
|
| 9 |
WORKDIR /app
|
| 10 |
|
|
|
|
| 11 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 12 |
build-essential \
|
| 13 |
ffmpeg \
|
|
|
|
| 23 |
&& mkdir -p /tmp/.fontconfig /tmp/.matplotlib \
|
| 24 |
&& chmod 777 /tmp/.fontconfig /tmp/.matplotlib
|
| 25 |
|
|
|
|
| 26 |
COPY requirements.txt /app/requirements.txt
|
| 27 |
RUN pip install --upgrade pip setuptools wheel
|
| 28 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
| 33 |
# Create tmp directory for model weights
|
| 34 |
RUN mkdir -p /tmp
|
| 35 |
|
|
|
|
| 36 |
EXPOSE 7860
|
| 37 |
|
|
|
|
| 38 |
CMD ["/bin/bash", "start.sh"]
|