webscrapper / Dockerfile
subhrajit-mohanty's picture
Create Dockerfile
0691155 verified
raw
history blame contribute delete
577 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY app.py .
# Set environment variables
ENV PORT=7860
ENV HOST=0.0.0.0
# Expose the port
EXPOSE 7860
# Command to run the application
CMD streamlit run app.py --server.port=7860 --server.address=0.0.0.0