Skip to content

Commit

Permalink
#484 feat: No need to recompile the binary as it's done by the wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
TWilkin committed Feb 15, 2024
1 parent a79c257 commit 415cd06
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions controllers/energenie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ COPY --from=build-common-image /opt/powerpi/common/python/dist/*.whl .
RUN .venv/bin/pip install ./*.whl \
&& rm -- *.whl

# re-compile the binary
WORKDIR /opt/powerpi/controllers/energenie/.venv/lib/python3.11/site-packages/pyenergenie/energenie/drv
RUN rm radio_rpi.so \
&& gcc -Wall -shared -o radio_rpi.so -fPIC radio.c hrfm69.c spis.c gpio_rpi.c delay_posix.c \
&& rm build* -- *.h *.c

# use multi-stage build to remove compile dependencies
FROM base-image AS run-image
LABEL description="PowerPi Energenie Controller"
Expand Down

0 comments on commit 415cd06

Please sign in to comment.