response_eng_1 / Dockerfile
vinay0123's picture
Update Dockerfile
0788dea verified
raw
history blame contribute delete
551 Bytes
# Use an official Python base image
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Copy project files
COPY response_1.py gpt_model.pth /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir torch flask pandas scikit-learn
# Expose port for Flask app
EXPOSE 7860
# Run Flask app
CMD ["python", "response_1.py"]