Skip to content

Commit

Permalink
Merge pull request #33 from MohammadiIram/update-dockerfile
Browse files Browse the repository at this point in the history
update Dockerfile
  • Loading branch information
MohammadiIram authored Jun 28, 2024
2 parents da9f6a1 + 3d09c72 commit 9b67524
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN microdnf update -y && \
pip install --upgrade --no-cache-dir pip wheel && \
microdnf clean all

FROM base as builder
WORKDIR /build

RUN pip install --no-cache tox
Expand All @@ -20,14 +19,12 @@ RUN --mount=source=.git,target=.git,type=bind \
tox -e build


FROM base as deploy

RUN python -m venv --upgrade-deps /opt/caikit/

ENV VIRTUAL_ENV=/opt/caikit
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

COPY --from=builder /build/dist/caikit_nlp*.whl /tmp/
RUN cp /build/dist/caikit_nlp*.whl /tmp/
RUN --mount=type=cache,target=/root/.cache/pip \
pip install /tmp/caikit_nlp*.whl && \
rm /tmp/caikit_nlp*.whl
Expand Down

0 comments on commit 9b67524

Please sign in to comment.