File size: 431 Bytes
5e0e982
 
 
 
 
 
 
990895d
 
 
 
 
 
5e0e982
990895d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM node:20-slim AS frontend
WORKDIR /frontend
COPY frontend/package.json frontend/package-lock.json* ./
RUN npm install
COPY frontend/ ./
RUN npm run build

FROM python:3.11-slim
WORKDIR /app
RUN mkdir -p /data/loop_logger
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY --from=frontend /static ./static
ENV PYTHONUNBUFFERED=1
CMD uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-7860}