FROM fedesrv.ddns.net/fede/void-musl-busybox:latest

WORKDIR /app

COPY . .

# instalar python (si la imagen lo permite)
RUN xbps-install -Sy python3 python3-pip || true

# instalar dependencias
RUN pip3 install fastapi[standard] pydantic || true

EXPOSE 8000

CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port 8000"]
