Spaces:
Sleeping
Sleeping
File size: 545 Bytes
909000c ab81f90 7b97053 ab81f90 4aaa7c2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | FROM node:20-alpine AS builder
WORKDIR /app/frontend
COPY frontend/3d-visualizer/package*.json ./
RUN npm install
COPY frontend/3d-visualizer/ ./
RUN npm run build
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ ./src/
COPY --from=builder /app/frontend/out ./static
EXPOSE 7860
CMD ["uvicorn", "src.api.api:app", "--host", "0.0.0.0", "--port", "7860"] |