Shantala commited on
Commit
fcc782d
·
verified ·
1 Parent(s): 140e18b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Install system-level dependencies (optional, if needed)
8
+ # RUN apt-get update && apt-get install -y <dependencies>
9
+
10
+ # Copy the requirements file into the container
11
+ COPY requirements.txt .
12
+
13
+ # Install Python dependencies
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy the rest of the application files into the container
17
+ COPY . .
18
+
19
+ # Expose the port the app runs on
20
+ EXPOSE 8050
21
+
22
+ # Command to run your Dash app using gunicorn
23
+ CMD ["gunicorn", "--bind", "0.0.0.0:8050", "app:server"]