Name108 commited on
Commit
319df4b
·
verified ·
1 Parent(s): 25528b9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -4,15 +4,15 @@ FROM python:3.9
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy the server file into the container
8
- COPY EchoAudio.py .
9
 
10
- # Copy the client file into the container
11
- COPY client.html .
12
 
13
- # Install any required Python dependencies (if your server.py uses any)
14
- # For example, if it uses Flask or FastAPI
15
- # RUN pip install flask
16
 
17
  # Expose the port your server will run on (usually 7860 for Hugging Face Spaces)
18
  EXPOSE 7860
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Copy the requirements file into the container
8
+ COPY requirements.txt .
9
 
10
+ # Install any required Python dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Copy the rest of your application files
14
+ COPY EchoAudio.py .
15
+ COPY client.html .
16
 
17
  # Expose the port your server will run on (usually 7860 for Hugging Face Spaces)
18
  EXPOSE 7860