it works now

This commit is contained in:
2024-11-08 20:34:14 +05:00
parent 0ebfa1fc08
commit 027710ba2f
5 changed files with 268 additions and 0 deletions

36
.build/Dockerfile Normal file
View File

@@ -0,0 +1,36 @@
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Set environment variables
#ENV PYTHONDONTWRITEBYTECODE=1 \
# PYTHONUNBUFFERED=1 \
# STREAMLIT_SERVER_PORT=8501 \
# STREAMLIT_SERVER_ADDRESS=0.0.0.0
ARG PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
STREAMLIT_SERVER_PORT=8501 \
STREAMLIT_SERVER_ADDRESS=0.0.0.0
# Install system dependencies
#RUN apt-get update && \
# apt-get install -y --no-install-recommends \
# build-essential \
# curl \
# && rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Expose the port Streamlit runs on
EXPOSE 8501
# Command to run the application
CMD ["streamlit", "run", "app.py"]