- 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
18 lines
399 B
Docker
18 lines
399 B
Docker
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"]
|