Do not use RUN statement (only rely on COPY for busybox image)

This would otherwise need the image to run. If another architecture
is used, it prevents this image having to start under emulation.

Signed-off-by: Gerard Braad <me@gbraad.nl>
This commit is contained in:
Gerard Braad
2025-05-13 16:28:40 +08:00
parent b61e09e66c
commit ac9d65150f
2 changed files with 0 additions and 1 deletions

View File

@@ -5,6 +5,5 @@ RUN make
FROM busybox FROM busybox
COPY images/udhcpc.sh /usr/share/udhcpc/default.script COPY images/udhcpc.sh /usr/share/udhcpc/default.script
RUN chmod +x /usr/share/udhcpc/default.script
COPY --from=build /opt/app-root/src/bin/gvforwarder . COPY --from=build /opt/app-root/src/bin/gvforwarder .
ENTRYPOINT ["/gvforwarder"] ENTRYPOINT ["/gvforwarder"]

0
images/udhcpc.sh Normal file → Executable file
View File