1
0
mirror of https://gitlab.com/2-chainz/2chainz.git synced 2025-06-15 17:36:39 +00:00

Merge branch 'cleanup_docker' into 'main'

Cleanup Docker Container

See merge request 2-chainz/2chainz!1
This commit is contained in:
Anson Biggs 2025-05-26 01:28:48 -07:00
commit 1da2d71eeb
3 changed files with 8 additions and 13 deletions

View File

@ -10,17 +10,10 @@ ENV UV_COMPILE_BYTECODE=1
# Copy from the cache instead of linking since it's a mounted volume
ENV UV_LINK_MODE=copy
# Copy dependency files
COPY uv.lock pyproject.toml ./
# Install the project's dependencies using the lockfile and settings
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked --no-install-project --no-dev
# Then, add the rest of the project source code and install it
COPY . /app
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked --no-dev
CMD ["uv", "run", "fastapi", "run", "src/two_chainz", "--port", "80", "--proxy-headers"]
CMD ["uv", "run", "--no-dev", "fastapi", "run", "src/two_chainz", "--port", "80", "--proxy-headers"]

View File

@ -18,4 +18,7 @@ build-backend = "hatchling.build"
packages = ["src/two_chainz"]
[dependency-groups]
dev = ["httpx>=0.28.1", "pytest>=8.3.5", "ruff>=0.11.11"]
dev = [
"pytest>=8.3.5",
"ruff>=0.11.11",
]

5
uv.lock generated
View File

@ -1,4 +1,5 @@
version = 1
revision = 1
requires-python = ">=3.13"
[[package]]
@ -11,7 +12,6 @@ dependencies = [
[package.dev-dependencies]
dev = [
{ name = "httpx" },
{ name = "pytest" },
{ name = "ruff" },
]
@ -21,7 +21,6 @@ requires-dist = [{ name = "fastapi", extras = ["standard"], specifier = ">=0.115
[package.metadata.requires-dev]
dev = [
{ name = "httpx", specifier = ">=0.28.1" },
{ name = "pytest", specifier = ">=8.3.5" },
{ name = "ruff", specifier = ">=0.11.11" },
]
@ -62,7 +61,7 @@ name = "click"
version = "8.2.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "colorama", marker = "platform_system == 'Windows'" },
{ name = "colorama", marker = "sys_platform == 'win32'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz", hash = "sha256:27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202", size = 286342 }
wheels = [