We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d79af commit 5232aecCopy full SHA for 5232aec
1 file changed
Dockerfile
@@ -21,16 +21,14 @@ FROM base AS python-deps
21
COPY Pipfile .
22
COPY Pipfile.lock .
23
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy
24
+ENV PATH="/.venv/bin:$PATH"
25
26
# download model and run test
27
COPY demo.png .
28
COPY download.py .
29
RUN --mount=type=cache,target=/root/.cache/huggingface \
30
python download.py
31
-ENV PATH="/.venv/bin:$PATH"
32
-RUN python download.py
33
-
34
FROM base AS runtime
35
# Copy virtual env from python-deps stage
36
COPY --from=python-deps /.venv /.venv
0 commit comments