human_evaluator / Dockerfile
iyadsultan's picture
Refactor application structure and enhance functionality
59cfd68
raw
history blame contribute delete
466 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
COPY templates/ templates/
COPY static/ static/
# Create data directory with proper permissions
RUN mkdir -p /app/data && chmod 777 /app/data
# Set environment variables
ENV DATA_DIR=/app/data
ENV PYTHONUNBUFFERED=1
# Expose port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]