From a7bb6db060cb82a3f30f721a2644fa4140e8f0ef Mon Sep 17 00:00:00 2001 From: Olly Hearn Date: Wed, 28 Jan 2026 15:23:33 +0300 Subject: [PATCH] update dockerfile --- Dockerfile | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3941c46..e04377e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,12 @@ -FROM python:3.12-slim - +FROM python:3.12.7-alpine WORKDIR /app -# Install system dependencies -RUN apt-get update && apt-get install -y \ - postgresql-client \ - && rm -rf /var/lib/apt/lists/* +ADD https://github.com/astral-sh/uv/releases/download/0.9.27/uv-installer.sh /uv-installer.sh +RUN sh /uv-installer.sh +ENV PATH="/root/.cargo/bin/:$PATH" -# Copy project files -COPY pyproject.toml ./ -COPY . . - -# Install Python dependencies -RUN pip install --no-cache-dir uv && \ - uv pip install --system -e . - -# Run the bot -CMD ["python", "main.py"] +ADD pyproject.toml . +ADD uv.lock . +RUN uv sync --frozen +ADD . . +CMD ["/root/.cargo/bin/uv", "run", "python", "/app/bot.py"] \ No newline at end of file