Samuel Oberhofer commited on
Commit
c7f2577
·
1 Parent(s): c0d0527

fix: Add Dockerfile for Hugging Face Spaces deployment

Browse files
Files changed (2) hide show
  1. Dockerfile +17 -0
  2. README.md +1 -2
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file
8
+ COPY requirements.txt .
9
+
10
+ # Copy the rest of the application files
11
+ COPY . .
12
+
13
+ # Make the startup script executable
14
+ RUN chmod +x startup.sh
15
+
16
+ # Set the entrypoint to the startup script
17
+ CMD ["./startup.sh"]
README.md CHANGED
@@ -4,6 +4,5 @@ emoji: 🤖
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: docker
7
- app_file: app.py
8
- startup_script: startup.sh
9
  ---
 
 
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: docker
 
 
7
  ---
8
+ r