WebProject / Dockerfile
Soheib31's picture
Upload 27 files
47a81c7 verified
raw
history blame contribute delete
683 Bytes
FROM python:3.10-slim
WORKDIR /app
# Copy requirements and install dependencies
COPY ./backend/requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Install additional dependencies for document processing
# Note: These would be replaced with actual document processing libraries in production
RUN pip install --no-cache-dir pandas openpyxl python-docx
# Copy backend code
COPY ./backend /app/backend
# Copy frontend files
COPY ./frontend /app/frontend
# Create uploads directory
RUN mkdir -p /app/uploads
# Set environment variables
ENV PYTHONPATH=/app
ENV PORT=7860
# Expose the port
EXPOSE 7860
# Run the FastAPI app
CMD ["python", "backend/main.py"]