feat: pipeline-runner — scaffold docker + deps
This commit is contained in:
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
pipeline-runner:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: pipeline_runner/Dockerfile
|
||||
ports:
|
||||
- "8767:8767"
|
||||
volumes:
|
||||
- /data/sorties:/data/sorties
|
||||
environment:
|
||||
- GDRIVE_REMOTE=gdrive:Cosma - Internal/06-Operations/06 - Sorties
|
||||
- OUTPUT_DIR=/data/sorties
|
||||
- TOOLS_DIR=/app/tools
|
||||
restart: unless-stopped
|
||||
9
pipeline_runner/Dockerfile
Normal file
9
pipeline_runner/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y rclone && rm -rf /var/lib/apt/lists/*
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY tools/ ./tools/
|
||||
COPY vendor/ ./vendor/
|
||||
COPY pipeline_runner/ ./pipeline_runner/
|
||||
CMD ["uvicorn", "pipeline_runner.main:app", "--host", "0.0.0.0", "--port", "8767"]
|
||||
0
pipeline_runner/__init__.py
Normal file
0
pipeline_runner/__init__.py
Normal file
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
fastapi==0.115.0
|
||||
uvicorn[standard]==0.30.6
|
||||
aiofiles==24.1.0
|
||||
numpy==2.1.1
|
||||
Reference in New Issue
Block a user