Darshan03 commited on
Commit
0724693
·
verified ·
1 Parent(s): e6e5558

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +36 -36
Dockerfile CHANGED
@@ -1,36 +1,36 @@
1
- # Use Python 3.9 slim image as base
2
- FROM python:3.9-slim
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Set environment variables
8
- ENV PYTHONDONTWRITEBYTECODE=1 \
9
- PYTHONUNBUFFERED=1 \
10
- PYTHONPATH=/app
11
-
12
- # Install system dependencies
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- curl \
16
- software-properties-common \
17
- git \
18
- && rm -rf /var/lib/apt/lists/*
19
-
20
- # Copy requirements file
21
- COPY requirements.txt .
22
-
23
- # Install Python dependencies
24
- RUN pip install --no-cache-dir -r requirements.txt
25
-
26
- # Copy project files
27
- COPY . .
28
-
29
- # Expose port
30
- EXPOSE 8501
31
-
32
- # Set healthcheck
33
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
34
-
35
- # Command to run the application
36
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
+ # Use Python 3.9 slim image as base
2
+ FROM python:3.9-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Set environment variables
8
+ ENV PYTHONDONTWRITEBYTECODE=1 \
9
+ PYTHONUNBUFFERED=1 \
10
+ PYTHONPATH=/app
11
+
12
+ # Install system dependencies
13
+ RUN apt-get update && apt-get install -y \
14
+ build-essential \
15
+ curl \
16
+ software-properties-common \
17
+ git \
18
+ && rm -rf /var/lib/apt/lists/*
19
+
20
+ # Copy requirements file
21
+ COPY requirements.txt .
22
+
23
+ # Install Python dependencies
24
+ RUN pip install --no-cache-dir -r requirements.txt
25
+
26
+ # Copy project files
27
+ COPY . .
28
+
29
+ # Expose port
30
+ EXPOSE 8501
31
+
32
+ # Set healthcheck
33
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
34
+
35
+ # Command to run the application
36
+ ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]