fix(recovery): restore source removed by production documentation merge
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# 0pt data engine — API + worker image (runs on a VPS, NOT Vercel; long jobs).
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Commit-kedjan (samma mönster som 0pt-motor/scripts/build-images.sh): samma
|
||||
# SHA i image-taggen (sätts av byggaren), OCI-label och GET /health.
|
||||
ARG GIT_SHA=unknown
|
||||
LABEL org.opencontainers.image.revision=${GIT_SHA}
|
||||
ENV GIT_SHA=${GIT_SHA}
|
||||
|
||||
WORKDIR /app
|
||||
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8000
|
||||
# API: uvicorn orchestrator.main:app --host 0.0.0.0 --port 8000
|
||||
# Worker: python -m workers.run
|
||||
CMD ["uvicorn", "orchestrator.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Reference in New Issue
Block a user