NERA / Dockerfile
sp103107's picture
Upload Dockerfile with huggingface_hub
a57da76 verified
Raw History Blame Contribute Delete
709 Bytes
# Use the official Python runtime as a parent image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
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
# Set the command to run the Streamlit app
CMD ["streamlit", "run", "hf_app.py", "--server.port=8501", "--server.address=0.0.0.0"]