feat: add Docker deployment for the bot
- Add Dockerfile for Python 3.13 container - Update docker-compose with naliia_bot service - Add DB_HOST config for container networking - Add .dockerignore for build optimization - Update README with Docker documentation
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install poetry
|
||||
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
RUN poetry install --no-dev --no-interaction
|
||||
|
||||
COPY src/ ./src/
|
||||
COPY .env.example .env
|
||||
|
||||
EXPOSE 8010
|
||||
|
||||
CMD ["poetry", "run", "uvicorn", "src.naliiabotapi.main:app", "--host", "0.0.0.0", "--port", "8010"]
|
||||
Reference in New Issue
Block a user