# syntax=docker/dockerfile:1 # Official Python 3.11 slim base image FROM python:3.11-slim # Metadata LABEL maintainer="your-name " LABEL description="CryptoBERT Gradio Inference App" # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies COPY requirements.txt . RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt # Copy application files COPY . . # Expose Gradio's default port EXPOSE 7860 # Define environment variable defaults (can override via Docker CLI or Compose) ENV HUGGINGFACE_TOKEN="" # Run the Gradio app CMD ["python", "app.py"]