mobenta commited on
Commit
1234001
1 Parent(s): d45e87a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile_generated +24 -0
Dockerfile_generated ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Use an official Python runtime as a parent image
3
+ FROM python:3.10
4
+
5
+ # Install Poppler utilities for pdf2image
6
+ RUN apt-get update && apt-get install -y poppler-utils
7
+
8
+ # Set the working directory
9
+ WORKDIR /app
10
+
11
+ # Copy the current directory contents into the container
12
+ COPY . /app
13
+
14
+ # Install any needed packages specified in requirements.txt
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Make port 7860 available to the world outside this container
18
+ EXPOSE 7860
19
+
20
+ # Define environment variable
21
+ ENV NAME World
22
+
23
+ # Run app.py when the container launches
24
+ CMD ["python", "app.py"]