Skip to content

Commit

Permalink
fix: clean up dockerfile (#16)
Browse files Browse the repository at this point in the history
* fix: clean up dockerfile WIP

* feat: use builder and wheels to install silverback

* Update Dockerfile

---------

Co-authored-by: El De-dog-lo <[email protected]>
  • Loading branch information
sabotagebeats and fubuloubu committed Jul 21, 2023
1 parent 19d85a4 commit e31bc3e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
FROM apeworx/ape:latest
#---------------------------------------------------------------------------------------------
# See LICENSE in the project root for license information.
#---------------------------------------------------------------------------------------------

# Build with builder image to reduce image size
FROM python:3.10 as builder
USER root
WORKDIR /wheels
COPY . .
# upgrade pip and install wheel
RUN pip install --upgrade pip && pip install wheel
# install silverback
RUN pip wheel . --wheel-dir=/wheels

# Install from wheels
FROM apeworx/ape:latest
USER root
RUN pip install silverback
COPY --from=builder /wheels /wheels
RUN pip install --upgrade pip \
&& pip install silverback --no-cache-dir --find-links=/wheels
USER harambe

ENTRYPOINT ["silverback"]

0 comments on commit e31bc3e

Please sign in to comment.