File size: 584 Bytes
243b15a e7a1a69 1a6672d 243b15a e7a1a69 1a6672d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | FROM node:20-bookworm AS frontend-build
WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm ci
COPY frontend/ ./
RUN npm run build
FROM rocm/dev-ubuntu-22.04:7.2.2-complete
WORKDIR /app
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY --from=frontend-build /app/frontend/dist ./frontend/dist
# Runtime envs: GROQ_API_KEY, ROCM_AVAILABLE, HIPCC_PATH, ROCPROF_PATH.
# Pass secrets at docker run/deploy time; do not bake .env into the image.
EXPOSE 8000
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
|