Skip to content

Commit d532e08

Browse files
committed
Update Dockerfile to revert to Python 3.8.5 and streamline installation process
1 parent 1db3521 commit d532e08

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

Dockerfile

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
1-
FROM python:3.9-slim
1+
FROM python:3.8.5-slim-buster
22

3-
# Install system dependencies
4-
RUN apt-get update && apt-get install -y --no-install-recommends \
5-
build-essential \
6-
software-properties-common \
7-
git \
8-
&& rm -rf /var/lib/apt/lists/*
9-
10-
# Set work directory
113
WORKDIR /app
124

13-
# Copy app files
145
COPY . /app
156

16-
# Install Python requirements
17-
RUN pip3 install --no-cache-dir -r requirements.txt
18-
19-
# Streamlit port
20-
EXPOSE 8501
7+
RUN pip install -r requirements.txt
218

22-
# Run Streamlit
23-
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
9+
CMD ["python3", "app.py"]

0 commit comments

Comments
 (0)