imseldrith commited on
Commit
0755d10
·
verified ·
1 Parent(s): e0a61fa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base Ubuntu image
2
+ FROM ubuntu:22.04
3
+
4
+ # Install system dependencies and Python
5
+ RUN apt-get update && \
6
+ apt-get install -y --no-install-recommends \
7
+ python3 \
8
+ python3-pip \
9
+ python3-dev \
10
+ git \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Set the working directory
14
+ WORKDIR /app
15
+
16
+ # Copy requirements.txt first to leverage Docker layer caching
17
+ COPY requirements.txt .
18
+
19
+ # Install Python dependencies
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Copy all files from the Hugging Face Space repository
23
+ COPY . .
24
+
25
+ # Command to run your script
26
+ CMD ["python3", "cli.py"]