mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
tools_webhook: added docker file
This commit is contained in:
parent
d55b9ea02e
commit
40164734c4
3 changed files with 33 additions and 2 deletions
21
apps/tools_webhook/Dockerfile
Normal file
21
apps/tools_webhook/Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Use official Python runtime as base image
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Set working directory in container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy requirements file
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy project files
|
||||
COPY . .
|
||||
|
||||
# Expose port if your app needs it (adjust as needed)
|
||||
ENV FLASK_APP=app
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Command to run Flask development server
|
||||
CMD ["flask", "run", "--host=0.0.0.0", "--port=3005"]
|
||||
|
|
@ -10,8 +10,8 @@ import jwt
|
|||
from flask import Flask, jsonify, request
|
||||
from jwt import InvalidTokenError
|
||||
|
||||
from tools_webhook.function_map import FUNCTIONS_MAP
|
||||
from tools_webhook.tool_caller import call_tool
|
||||
from .function_map import FUNCTIONS_MAP
|
||||
from .tool_caller import call_tool
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
|
|
|||
|
|
@ -48,6 +48,16 @@ services:
|
|||
environment:
|
||||
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
||||
- API_KEY=${COPILOT_API_KEY}
|
||||
restart: unless-stopped
|
||||
|
||||
tools_webhook:
|
||||
build:
|
||||
context: ./apps/tools_webhook
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3005:3005"
|
||||
environment:
|
||||
- SIGNING_SECRET=${SIGNING_SECRET}
|
||||
restart: unless-stopped
|
||||
|
||||
docs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue