denisbruno commited on
Commit
94ad2df
·
verified ·
1 Parent(s): 9c9b7ff

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -24
Dockerfile CHANGED
@@ -1,24 +1,26 @@
1
- # For more information, please refer to https://aka.ms/vscode-docker-python
2
- FROM python:3.10-slim
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Copy and install system dependencies from packages.txt
8
- COPY packages.txt .
9
- RUN apt-get update \
10
- && apt-get install -y --no-install-recommends locales-all ffmpeg git \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Copy requirements and install
14
- COPY requirements.txt .
15
- RUN pip install --no-cache-dir -r requirements.txt
16
-
17
- # Copy all project files
18
- COPY . .
19
-
20
- # Expose Streamlit default port
21
- EXPOSE 80
22
-
23
- # Run the Streamlit app
24
- CMD ["streamlit", "run", "app.py", "--server.port=80", "--server.address=0.0.0.0"]
 
 
 
1
+ # For more information, please refer to https://aka.ms/vscode-docker-python
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy and install system dependencies from packages.txt
8
+ COPY packages.txt .
9
+ RUN apt-get update \
10
+ && apt-get install -y --no-install-recommends locales-all ffmpeg git \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy requirements and install
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy all project files
18
+ COPY . .
19
+
20
+ # Expose Streamlit default port
21
+ EXPOSE 8501
22
+
23
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
24
+
25
+ # Run the Streamlit app
26
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]