Spaces:
No application file
No application file
Create Dockerfile
Browse files- Dockerfile +26 -0
Dockerfile
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Install system dependencies
|
8 |
+
RUN apt-get update && \
|
9 |
+
apt-get install -y \
|
10 |
+
libsndfile1-dev \
|
11 |
+
&& rm -rf /var/lib/apt/lists/*
|
12 |
+
|
13 |
+
# Copy the current directory contents into the container
|
14 |
+
COPY . /app
|
15 |
+
|
16 |
+
# Install any needed packages specified in requirements.txt
|
17 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
+
|
19 |
+
# Make port 80 available to the world outside this container
|
20 |
+
EXPOSE 80
|
21 |
+
|
22 |
+
# Define environment variable
|
23 |
+
ENV NAME RVCVoiceCloningApp
|
24 |
+
|
25 |
+
# Run the application
|
26 |
+
CMD ["python", "app.py"]
|