Skip to content

Commit 2ebeaaa

Browse files
committed
v1.0.2 - add proper Dockerfile
1 parent ac93621 commit 2ebeaaa

File tree

4 files changed

+2799
-5
lines changed

4 files changed

+2799
-5
lines changed

Dockerfile

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
FROM ubuntu:latest
2-
LABEL authors="calm"
1+
FROM python:3.12-slim-bookworm
32

4-
ENTRYPOINT ["top", "-b"]
3+
WORKDIR /app
4+
5+
# Install system dependencies
6+
RUN apt-get update && \
7+
apt-get install -y --no-install-recommends curl git && \
8+
rm -rf /var/lib/apt/lists/*
9+
10+
# Install uv
11+
RUN pip install --no-cache-dir uv
12+
13+
# Copy the entire project files
14+
COPY . .
15+
16+
# Install dependencies with uv sync, including specified groups
17+
RUN uv sync --group extras
18+
19+
# Run the bot
20+
CMD ["uv", "run", "python", "run.py"]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
authors = [
77
{name = "Petr Lavrov", email = "me@petrlavrov.com"},
88
]
9-
requires-python = "<4.0,>=3.11"
9+
requires-python = "<4.0,>=3.12"
1010
dependencies = [
1111
"calmlib @ git+https://github.com/calmmage/calmlib.git@main",
1212
"loguru>=0.7",
@@ -112,7 +112,7 @@ dev = [
112112
]
113113

114114
[template]
115-
version = "1.0.1" # optimize pyproject dependencies
115+
version = "1.0.2" # optimize pyproject dependencies
116116
url = "https://github.com/calmmage/python-project-template.git"
117117
author = "Petr Lavrov <me@petrlavrov.com>"
118118
description = "A template for creating a bot using calmapp and bot-lib"

run.py

Whitespace-only changes.

0 commit comments

Comments
 (0)