Sugamdeol commited on
Commit
faf052d
·
verified ·
1 Parent(s): 2cbc2a4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile
2
+
3
+ # Use the official, full Python image for best compatibility
4
+ FROM python:3.11
5
+
6
+ # Set the working directory inside the container
7
+ WORKDIR /app
8
+
9
+ # Install system dependencies listed in packages.txt
10
+ COPY packages.txt .
11
+ RUN apt-get update && xargs -a packages.txt apt-get install -y --no-install-recommends && apt-get clean && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy and install Python requirements
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy the rest of your application code
18
+ COPY . .
19
+
20
+ # Expose the port that the application will run on
21
+ EXPOSE 7860
22
+
23
+ # NO CMD OR ENTRYPOINT LINE HERE
24
+ # The Hugging Face platform will provide the command to run the app.