mirror of
https://github.com/velocitatem/PHANTOM.git
synced 2026-05-31 08:33:36 +00:00
fix: unified provider container for standalone
This commit is contained in:
@@ -211,11 +211,6 @@ services:
|
|||||||
- BACKEND_URL=http://localhost:5000
|
- BACKEND_URL=http://localhost:5000
|
||||||
ports:
|
ports:
|
||||||
- "${PROVIDER_PORT:-5001}:5001"
|
- "${PROVIDER_PORT:-5001}:5001"
|
||||||
volumes:
|
|
||||||
- ./lib:/app/lib:ro
|
|
||||||
- ./experiments/procesing:/app/procesing:ro
|
|
||||||
- ./backend/provider:/app/provider:ro
|
|
||||||
command: python -m uvicorn provider.app:app --host 0.0.0.0 --port 5001
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -14,11 +14,13 @@ RUN apt-get update && apt-get install -y \
|
|||||||
COPY backend/provider/requirements.txt /app/
|
COPY backend/provider/requirements.txt /app/
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Structure will be mounted via volumes:
|
# Copy application code into image
|
||||||
# /app/lib -> lib/
|
COPY lib/ /app/lib/
|
||||||
# /app/procesing -> experiments/procesing/
|
COPY experiments/procesing/ /app/procesing/
|
||||||
# /app/provider -> backend/provider/
|
COPY backend/provider/ /app/provider/
|
||||||
|
|
||||||
ENV PYTHONPATH=/app:/app/lib:/app/procesing
|
ENV PYTHONPATH=/app:/app/lib:/app/procesing
|
||||||
|
|
||||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5001", "--app-dir", "/app/provider"]
|
WORKDIR /app/provider
|
||||||
|
|
||||||
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5001"]
|
||||||
|
|||||||
Reference in New Issue
Block a user