Skip to content

Commit 2f366d2

Browse files
author
extreme4all
committed
update uv
1 parent cef4c47 commit 2f366d2

17 files changed

Lines changed: 39 additions & 20 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.11-slim-bookworm AS builder
22

33
# Copy uv from external repository
4-
COPY --from=ghcr.io/astral-sh/uv:0.5.13 /uv /uvx /bin/
4+
COPY --from=ghcr.io/astral-sh/uv:0.9.7 /uv /uvx /bin/
55

66
# Set the working directory for the build stage
77
WORKDIR /app

_kafka/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM python:3.11-slim-bookworm
2-
COPY --from=ghcr.io/astral-sh/uv:0.5.13 /uv /uvx /bin/
2+
COPY --from=ghcr.io/astral-sh/uv:0.9.7 /uv /uvx /bin/
33

44
WORKDIR /app
55

_mysql_data/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM python:3.11-slim-bookworm
2-
COPY --from=ghcr.io/astral-sh/uv:0.5.13 /uv /uvx /bin/
2+
COPY --from=ghcr.io/astral-sh/uv:0.9.7 /uv /uvx /bin/
33

44
WORKDIR /app
55

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ services:
132132
# COMPONENTS
133133
hiscore_scraper:
134134
container_name: hiscore_scraper
135-
image: bd/hiscore_scraper # tags the image if build
135+
image: bd/scraper_hiscore # tags the image if build
136136
build:
137137
context: ./
138138
dockerfile: ./projects/hiscore_scraper/Dockerfile
@@ -149,7 +149,7 @@ services:
149149
condition: service_completed_successfully
150150
runemetrics_scraper:
151151
container_name: runemetrics_scraper
152-
image: bd/runemetrics_scraper # tags the image if build
152+
image: bd/scraper_runemetrics # tags the image if build
153153
build:
154154
context: ./
155155
dockerfile: ./projects/runemetrics_scraper/Dockerfile

projects/api_ml/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.12-slim-bookworm AS builder
22

33
# Copy uv from external repository
4-
COPY --from=ghcr.io/astral-sh/uv:0.5.4 /uv /uvx /bin/
4+
COPY --from=ghcr.io/astral-sh/uv:0.9.7 /uv /uvx /bin/
55

66
# set the working directory
77
WORKDIR /app
@@ -14,10 +14,7 @@ COPY ./projects ./projects
1414
WORKDIR /app/projects/api_ml
1515

1616
# install dependencies via RUN uv build
17-
ENV UV_HTTP_TIMEOUT=120
18-
# ENV UV_PYTHON_CACHE_DIR=/root/.cache/uv/python
19-
# RUN --mount=type=cache,target=/root/.cache/uv \
20-
# uv sync --frozen --no-editable
17+
ENV UV_HTTP_TIMEOUT=1200
2118
RUN uv sync --frozen --no-editable
2219

2320
# Production stage: Prepare the final production environment

projects/api_ml/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ dependencies = [
1717
"scikit-learn==1.7.2",
1818
"numpy==2.3.3",
1919
"pandas==2.3.2",
20+
"lightgbm==4.6.0",
21+
"defusedxml==0.7.1",
22+
"matplotlib==3.10.6",
2023
]
2124

2225
[project.scripts]

projects/api_ml/uv.lock

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/api_public/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.12-slim-bookworm AS builder
22

33
# Copy uv from external repository
4-
COPY --from=ghcr.io/astral-sh/uv:0.5.4 /uv /uvx /bin/
4+
COPY --from=ghcr.io/astral-sh/uv:0.9.7 /uv /uvx /bin/
55

66
# set the working directory
77
WORKDIR /app

projects/hiscore_scraper/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.12-slim-bookworm AS builder
22

33
# Copy uv from external repository
4-
COPY --from=ghcr.io/astral-sh/uv:0.5.13 /uv /uvx /bin/
4+
COPY --from=ghcr.io/astral-sh/uv:0.9.7 /uv /uvx /bin/
55

66
# Set the working directory for the build stage
77
WORKDIR /app

projects/job_hs_migration_v3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.12-slim-bookworm AS builder
22

33
# Copy uv from external repository
4-
COPY --from=ghcr.io/astral-sh/uv:0.5.13 /uv /uvx /bin/
4+
COPY --from=ghcr.io/astral-sh/uv:0.9.7 /uv /uvx /bin/
55

66
# Set the working directory for the build stage
77
WORKDIR /app

0 commit comments

Comments
 (0)