Compare commits
4
Commits
e85c6fe628
...
8960470a09
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8960470a09 | ||
|
|
6006dceafa | ||
|
|
1c9e92812e | ||
|
|
d7ea690685 |
@@ -0,0 +1,2 @@
|
|||||||
|
# Exclude the project virtual environment from image builds
|
||||||
|
.venv
|
||||||
@@ -106,6 +106,7 @@ ENV/
|
|||||||
env.bak/
|
env.bak/
|
||||||
venv.bak/
|
venv.bak/
|
||||||
poetry.lock
|
poetry.lock
|
||||||
|
uv.lock
|
||||||
|
|
||||||
# Spyder project settings
|
# Spyder project settings
|
||||||
.spyderproject
|
.spyderproject
|
||||||
|
|||||||
+9
-12
@@ -1,18 +1,15 @@
|
|||||||
FROM python:3.12.3-slim
|
FROM python:3.12.3-slim
|
||||||
|
|
||||||
|
# install uv
|
||||||
|
COPY --from=ghcr.io/astral-sh/uv:0.4.30 /uv /uvx /bin/
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y upgrade && apt-get -y install sqlite3
|
RUN apt-get update && apt-get -y upgrade && apt-get -y install sqlite3
|
||||||
|
|
||||||
WORKDIR /home
|
# Copy project to image
|
||||||
|
ADD . /agon
|
||||||
|
|
||||||
|
# Sync the project into a new environment, using the frozen lockfile
|
||||||
|
WORKDIR /agon
|
||||||
|
RUN uv sync --frozen --no-dev
|
||||||
|
|
||||||
COPY main.py main.py
|
CMD ["uv", "run", "./main.py"]
|
||||||
COPY pyproject.toml pyproject.toml
|
|
||||||
|
|
||||||
COPY classes classes/
|
|
||||||
COPY cogs cogs/
|
|
||||||
COPY database_setup database_setup/
|
|
||||||
COPY utilities utilities/
|
|
||||||
|
|
||||||
RUN pip install --upgrade pip && pip install poetry && poetry export -f requirements.txt --output requirements.txt && pip install -r requirements.txt
|
|
||||||
|
|
||||||
CMD ["python3", "./main.py"]
|
|
||||||
|
|||||||
+15
-18
@@ -1,27 +1,24 @@
|
|||||||
[tool.poetry]
|
[project]
|
||||||
name = "agon"
|
name = "agon"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "A highscores discord bot"
|
description = "A highscores discord bot"
|
||||||
authors = ["imcompiling <[email protected]>"]
|
authors = ["imcompiling <[email protected]>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
dependencies = [
|
||||||
|
"cryptography>=43.0.3",
|
||||||
|
"nextcord>=2.6.0",
|
||||||
|
"pandas>=2.2.3",
|
||||||
|
"pymysql>=1.1.1",
|
||||||
|
"python-dotenv>=1.0.1",
|
||||||
|
"setuptools>=75.3.0",
|
||||||
|
"sqlalchemy>=2.0.35",
|
||||||
|
]
|
||||||
|
requires-python = ">=3.12"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.uv]
|
||||||
python = "^3.12"
|
dev-dependencies = [
|
||||||
nextcord = "^2.6.0"
|
"ruff>=0.7.2",
|
||||||
python-dotenv = "^1.0.1"
|
]
|
||||||
pandas = "^2.2.3"
|
|
||||||
sqlalchemy = "^2.0.35"
|
|
||||||
pymysql = "^1.1.1"
|
|
||||||
cryptography = "^43.0.1"
|
|
||||||
setuptools = "^75.1.0"
|
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
|
||||||
ruff = "^0.6.9"
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["poetry-core"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
# Exclude a variety of commonly ignored directories.
|
# Exclude a variety of commonly ignored directories.
|
||||||
|
|||||||
Reference in New Issue
Block a user