| |
| FROM node:18-alpine AS builder |
|
|
| WORKDIR /app/space |
|
|
| |
| COPY frontend/package.json ./package.json |
| COPY frontend/package-lock.json ./package-lock.json |
|
|
| |
| RUN npm install |
|
|
| |
| COPY frontend/src ./src |
| COPY frontend/public ./public |
|
|
| |
| RUN npm run build |
|
|
| |
| FROM python:3.11-slim |
|
|
| WORKDIR /app/backend |
|
|
| |
| COPY requirements.txt /app/ |
| RUN pip install --no-cache-dir -r /app/requirements.txt |
|
|
| |
| COPY backend/. ./ |
|
|
| |
| COPY --from=builder /app/space/build /app/backend/static |
|
|
| |
| EXPOSE 8080 |
|
|
| |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"] |
|
|
|
|