| FROM python:3.11-slim |
|
|
| |
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| build-essential \ |
| curl \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| COPY backend/requirements.txt ./backend_requirements.txt |
| COPY frontend/requirements.txt ./frontend_requirements.txt |
|
|
| |
| RUN pip install --no-cache-dir -r backend_requirements.txt |
| RUN pip install --no-cache-dir -r frontend_requirements.txt |
|
|
| |
| COPY ai ./ai |
| COPY backend ./backend |
| COPY frontend ./frontend |
| COPY start.sh ./start.sh |
| COPY secrets ./secrets |
|
|
| |
| ENV BACKEND_URL=http://localhost:8080 |
| ENV PYTHONUNBUFFERED=1 |
|
|
| |
| EXPOSE 8501 |
|
|
| |
| RUN chmod +x start.sh |
|
|
| |
| CMD ["./start.sh"] |
|
|