Commit
·
6bc1136
1
Parent(s):
76667dd
update: dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -2,12 +2,8 @@ FROM python:3.12-slim
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
-
#
|
6 |
-
|
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 && chmod -R 0777 /app/.cache
|
11 |
|
12 |
RUN apt-get update && apt-get install -y \
|
13 |
build-essential \
|
@@ -21,6 +17,10 @@ COPY requirements.txt ./
|
|
21 |
COPY src/ ./src/
|
22 |
|
23 |
RUN pip3 install uv
|
|
|
|
|
|
|
|
|
24 |
RUN uv venv
|
25 |
RUN uv pip install -r requirements.txt
|
26 |
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
# Set UV cache directory to a writable location
|
6 |
+
ENV UV_CACHE_DIR=/app/.uv-cache
|
|
|
|
|
|
|
|
|
7 |
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
build-essential \
|
|
|
17 |
COPY src/ ./src/
|
18 |
|
19 |
RUN pip3 install uv
|
20 |
+
|
21 |
+
# Create UV cache directory with proper permissions
|
22 |
+
RUN mkdir -p /app/.uv-cache && chmod 755 /app/.uv-cache
|
23 |
+
|
24 |
RUN uv venv
|
25 |
RUN uv pip install -r requirements.txt
|
26 |
|