Skip to content

Commit

Permalink
fix: clean up slim
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Aug 15, 2024
1 parent 06924e7 commit 3f851ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
# See LICENSE in the project root for license information.
#---------------------------------------------------------------------------------------------

ARG PYTHON_VERSION="3.11"
FROM python:${PYTHON_VERSION} as builder

WORKDIR /wheels

RUN pip install --upgrade pip \
&& pip install wheel

COPY . .

RUN mkdir /wheels

COPY ./recommended-plugins.txt ./recommended-plugins.txt

RUN pip wheel .[recommended-plugins] --wheel-dir=/wheels

FROM ape:latest-slim

USER root
Expand Down
7 changes: 0 additions & 7 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ COPY . .

RUN pip wheel .

RUN mkdir /wheels/recommended_plugins

COPY ./recommended-plugins.txt ./recommended-plugins.txt

RUN pip wheel .[recommended-plugins] --wheel-dir=/wheels/recommended_plugins

FROM python:${PYTHON_VERSION}-slim

# See http://label-schema.org for metadata schema
Expand All @@ -40,7 +34,6 @@ COPY --from=builder /wheels/*.whl /wheels/
RUN pip install --upgrade pip
RUN pip install /wheels/*.whl

COPY --from=builder /wheels/recommended_plugins/*.whl /wheels/
RUN ape --version

WORKDIR /home/harambe/project
Expand Down

0 comments on commit 3f851ad

Please sign in to comment.