Add Streamlit Docker auto-sync deployment
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
||||
ENV STREAMLIT_SERVER_PORT=8501
|
||||
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml readme.md LICENSE ./
|
||||
COPY src ./src
|
||||
COPY app.py ./
|
||||
|
||||
RUN python -m pip install --no-cache-dir --upgrade pip \
|
||||
&& python -m pip install --no-cache-dir -e .
|
||||
|
||||
EXPOSE 8501
|
||||
|
||||
CMD ["python", "-m", "streamlit", "run", "app.py"]
|
||||
Reference in New Issue
Block a user