Commit
·
29642ba
1
Parent(s):
e3abc09
update: dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -2,6 +2,13 @@ FROM python:3.12-slim
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
build-essential \
|
7 |
curl \
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
# Ensure uv (and other tools following XDG) can write caches even when the container
|
6 |
+
# runs as a non-root/random UID (e.g., in Kubernetes/OpenShift).
|
7 |
+
ENV HOME=/app
|
8 |
+
ENV XDG_CACHE_HOME=/app/.cache
|
9 |
+
ENV UV_CACHE_DIR=/app/.cache/uv
|
10 |
+
RUN mkdir -p /app/.cache/uv
|
11 |
+
|
12 |
RUN apt-get update && apt-get install -y \
|
13 |
build-essential \
|
14 |
curl \
|