Cost_Plus_Pricing / Dockerfile
pilayar's picture
Update Dockerfile
2ace240 verified
Raw
History Blame Contribute Delete
559 Bytes
FROM python:3.13.5-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements first to leverage Docker cache
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy everything from your local directory into the /app directory in the container
COPY . .
EXPOSE 7860
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]