# Stage 1: init
FROM python:3.11 as init

ARG API_URL

WORKDIR /app

ENV VIRTUAL_ENV=/app/.venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python3.11 -m venv $VIRTUAL_ENV

COPY requirements.txt .

RUN pip install -r requirements.txt

COPY . .

RUN reflex init
