fix: Docker deployment - fix Dockerfiles, registry.py f-strings, Gateway app structure
This commit is contained in:
@@ -5,19 +5,20 @@ LABEL maintainer="DAARION.city Team"
|
||||
LABEL description="Bot Gateway - Telegram/Discord webhook handler with DAARWIZZ"
|
||||
LABEL version="0.2.0"
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /app/gateway-bot
|
||||
|
||||
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy requirements and install
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt httpx
|
||||
# Install minimal dependencies
|
||||
RUN pip install --no-cache-dir \
|
||||
fastapi==0.109.0 \
|
||||
uvicorn==0.27.0 \
|
||||
httpx==0.26.0 \
|
||||
pydantic==2.5.3 \
|
||||
python-multipart==0.0.6
|
||||
|
||||
# Copy gateway code
|
||||
COPY gateway-bot/ /app/gateway-bot/
|
||||
|
||||
# Copy DAARWIZZ system prompt
|
||||
COPY gateway-bot/daarwizz_prompt.txt /app/gateway-bot/daarwizz_prompt.txt
|
||||
# Copy gateway code and DAARWIZZ prompt
|
||||
COPY . .
|
||||
|
||||
EXPOSE 9300
|
||||
|
||||
@@ -27,4 +28,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
ENV DAARWIZZ_NAME=DAARWIZZ
|
||||
ENV DAARWIZZ_PROMPT_PATH=/app/gateway-bot/daarwizz_prompt.txt
|
||||
|
||||
CMD ["python", "-m", "gateway_bot.main", "--host", "0.0.0.0", "--port", "9300"]
|
||||
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "9300"]
|
||||
|
||||
Reference in New Issue
Block a user