Skip to content

Commit 70e3800

Browse files
committed
refactor: adjust dockerfile
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 15026c0 commit 70e3800

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pack/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ ARG TARGETPLATFORM
240240
ARG TARGETOS
241241
ARG TARGETARCH
242242

243+
## Configure data volume
244+
VOLUME /var/lib/gpustack
245+
ENV GPUSTACK_RUNTIME_DOCKER_EPHEMERAL_FILES_DIR="/var/lib/gpustack/cache/gpustack-runtime"
246+
243247
## Update
244248
RUN <<EOF
245249
# Update
@@ -266,8 +270,6 @@ RUN --mount=type=cache,target=/root/.cache \
266270
/workspace/runtime
267271
uv pip tree
268272
EOF
269-
ENV GPUSTACK_RUNTIME_DEPLOY_MIRRORED_DEPLOYMENT="true" \
270-
GPUSTACK_RUNTIME_DOCKER_EPHEMERAL_FILES_DIR="/var/lib/gpustack/cache/gpustack-runtime"
271273

272274
## Entrypoint
273275

0 commit comments

Comments
 (0)