Skip to content

Commit 5232aec

Browse files
committed
update docker build
1 parent f1d79af commit 5232aec

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ FROM base AS python-deps
2121
COPY Pipfile .
2222
COPY Pipfile.lock .
2323
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy
24+
ENV PATH="/.venv/bin:$PATH"
2425

2526
# download model and run test
2627
COPY demo.png .
2728
COPY download.py .
2829
RUN --mount=type=cache,target=/root/.cache/huggingface \
2930
python download.py
3031

31-
ENV PATH="/.venv/bin:$PATH"
32-
RUN python download.py
33-
3432
FROM base AS runtime
3533
# Copy virtual env from python-deps stage
3634
COPY --from=python-deps /.venv /.venv

0 commit comments

Comments
 (0)