Initial commit
This commit is contained in:
25
docker-compose.yaml
Normal file
25
docker-compose.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
pipeline:
|
||||
build:
|
||||
context: .
|
||||
dockerfile_inline: |
|
||||
FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN pip install --no-cache-dir .
|
||||
ENV ROBOT_JSON=/config/robot.json
|
||||
EXPOSE 8446
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \
|
||||
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8446/v1/health')"
|
||||
CMD ["python", "-m", "scripts.api", \
|
||||
"--robot", "/config/robot.json", \
|
||||
"--host", "0.0.0.0", "--port", "8446"]
|
||||
image: approbot/pose-pipeline:1.0.0
|
||||
container_name: appRobotBodyTracker
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8446:8446"
|
||||
volumes:
|
||||
- ./config/robot.json:/config/robot.json:ro
|
||||
environment:
|
||||
- ROBOT_JSON=/config/robot.json
|
||||
Reference in New Issue
Block a user