rajkhanke commited on
Commit
11563ba
·
verified ·
1 Parent(s): 738ff98

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as a base
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy the application code and supporting files to the container
8
+ COPY . /app
9
+
10
+ # Install system dependencies
11
+ RUN apt-get update && apt-get install -y \
12
+ libgl1-mesa-glx \
13
+ libglib2.0-0 \
14
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Install Python dependencies
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Expose the port on which the app will run
20
+ EXPOSE 7860
21
+
22
+ # Command to run the application
23
+ CMD ["python", "app.py"]