nlp-evaluation-v2 / Dockerfile
somriksur's picture
Update Dockerfile
0b3c935 verified
Raw
History Blame Contribute Delete
530 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app_simple_working.py app.py
COPY best_model_90percent.pt .
# Expose port
EXPOSE 7860
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Run the Gradio application
CMD ["python", "app.py"]