Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BugFix] Redefine ARG between stages #1408

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Redfine ARG between stages
  • Loading branch information
rahul-tuli committed Nov 15, 2023
commit 14cf8a4ed319447179439b51ee39b11b48820917
7 changes: 7 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ARG BRANCH

FROM python:3.8.16-slim-bullseye@sha256:322e38e3056cf87280ad80be615a6282aae768090f30d43d99abe413e1dd081a AS base
ARG VENV
ARG BRANCH

RUN set -Eeuxo \
&& apt-get update \
Expand All @@ -30,6 +31,8 @@ ENV PATH="${VENV}/bin:$PATH"
ENV PIP_DEFAULT_TIMEOUT=200
ARG VERSION
ARG MODE=""
ARG BRANCH

RUN \
if [ -n "$BRANCH" ] ; then \
echo Installing from BRANCH && \
Expand Down Expand Up @@ -60,6 +63,7 @@ ENV PATH="${VENV}/bin:$PATH"
ENV PIP_DEFAULT_TIMEOUT=200
ARG VERSION
ARG MODE=""
ARG BRANCH
RUN \
if [ -n "$BRANCH" ] ; then \
echo Installing from BRANCH && \
Expand Down Expand Up @@ -88,6 +92,8 @@ ENV PATH="${VENV}/bin:$PATH"
ENV PIP_DEFAULT_TIMEOUT=200
ARG VERSION
ARG MODE
ARG BRANCH

RUN \
if [ -n "$BRANCH" ] ; then \
echo Installing from BRANCH with editable mode && \
Expand Down Expand Up @@ -117,5 +123,6 @@ ARG VENV
COPY --from=build $VENV $VENV
ENV PATH="${VENV}/bin:$PATH"
HEALTHCHECK CMD python -c 'import deepsparse'
RUN pip list | grep deepsparse
CMD bash