mirror of
https://gitlab.com/2-chainz/2chainz.git
synced 2025-06-16 09:56:40 +00:00
Revert "Merge branch 'cleanup_docker' into 'main'"
This reverts merge request !1
This commit is contained in:
parent
1da2d71eeb
commit
0af8711276
11
Dockerfile
11
Dockerfile
@ -10,10 +10,17 @@ ENV UV_COMPILE_BYTECODE=1
|
|||||||
# Copy from the cache instead of linking since it's a mounted volume
|
# Copy from the cache instead of linking since it's a mounted volume
|
||||||
ENV UV_LINK_MODE=copy
|
ENV UV_LINK_MODE=copy
|
||||||
|
|
||||||
COPY . /app
|
# 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 \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
uv sync --locked --no-dev
|
uv sync --locked --no-dev
|
||||||
|
|
||||||
CMD ["uv", "run", "--no-dev", "fastapi", "run", "src/two_chainz", "--port", "80", "--proxy-headers"]
|
CMD ["uv", "run", "fastapi", "run", "src/two_chainz", "--port", "80", "--proxy-headers"]
|
||||||
|
|
||||||
|
@ -18,7 +18,4 @@ build-backend = "hatchling.build"
|
|||||||
packages = ["src/two_chainz"]
|
packages = ["src/two_chainz"]
|
||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
dev = [
|
dev = ["httpx>=0.28.1", "pytest>=8.3.5", "ruff>=0.11.11"]
|
||||||
"pytest>=8.3.5",
|
|
||||||
"ruff>=0.11.11",
|
|
||||||
]
|
|
||||||
|
5
uv.lock
generated
5
uv.lock
generated
@ -1,5 +1,4 @@
|
|||||||
version = 1
|
version = 1
|
||||||
revision = 1
|
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -12,6 +11,7 @@ dependencies = [
|
|||||||
|
|
||||||
[package.dev-dependencies]
|
[package.dev-dependencies]
|
||||||
dev = [
|
dev = [
|
||||||
|
{ name = "httpx" },
|
||||||
{ name = "pytest" },
|
{ name = "pytest" },
|
||||||
{ name = "ruff" },
|
{ name = "ruff" },
|
||||||
]
|
]
|
||||||
@ -21,6 +21,7 @@ requires-dist = [{ name = "fastapi", extras = ["standard"], specifier = ">=0.115
|
|||||||
|
|
||||||
[package.metadata.requires-dev]
|
[package.metadata.requires-dev]
|
||||||
dev = [
|
dev = [
|
||||||
|
{ name = "httpx", specifier = ">=0.28.1" },
|
||||||
{ name = "pytest", specifier = ">=8.3.5" },
|
{ name = "pytest", specifier = ">=8.3.5" },
|
||||||
{ name = "ruff", specifier = ">=0.11.11" },
|
{ name = "ruff", specifier = ">=0.11.11" },
|
||||||
]
|
]
|
||||||
@ -61,7 +62,7 @@ name = "click"
|
|||||||
version = "8.2.1"
|
version = "8.2.1"
|
||||||
source = { registry = "https://pypi.org/simple" }
|
source = { registry = "https://pypi.org/simple" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
{ name = "colorama", marker = "platform_system == 'Windows'" },
|
||||||
]
|
]
|
||||||
sdist = { url = "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz", hash = "sha256:27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202", size = 286342 }
|
sdist = { url = "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz", hash = "sha256:27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202", size = 286342 }
|
||||||
wheels = [
|
wheels = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user