Browse Source
717: Ci and docker improvement r=bonomat a=bonomat Co-authored-by: bonomat <philipp@hoenisch.at>debug-collab-settlement
committed by
GitHub
7 changed files with 26 additions and 69 deletions
@ -1,4 +1,2 @@ |
|||
[target.armv7-unknown-linux-gnueabihf] |
|||
linker = "arm-linux-gnueabihf-gcc" |
|||
[target.aarch64-unknown-linux-gnu] |
|||
linker = "aarch64-linux-gnu-gcc" |
|||
|
@ -1,19 +1,18 @@ |
|||
FROM debian:bullseye-slim |
|||
FROM gcr.io/distroless/cc |
|||
|
|||
LABEL org.opencontainers.image.source https://github.com/itchysats/itchysats |
|||
USER 1000 |
|||
|
|||
LABEL "org.opencontainers.image.source"="https://github.com/itchysats/itchysats" |
|||
LABEL "org.opencontainers.image.authors"="hello@itchysats.network" |
|||
|
|||
ARG TARGETPLATFORM |
|||
ARG BINARY_PATH |
|||
|
|||
RUN echo "Copying $TARGETPLATFORM/$BINARY_PATH into container" |
|||
|
|||
COPY $TARGETPLATFORM/$BINARY_PATH binary |
|||
|
|||
RUN chmod a+x binary |
|||
COPY $TARGETPLATFORM/$BINARY_PATH /usr/bin/binary |
|||
|
|||
VOLUME data |
|||
|
|||
# HTTP Port and P2P Port |
|||
EXPOSE 8000 9999 |
|||
|
|||
ENTRYPOINT ["/binary", "--data-dir=/data", "--http-address=0.0.0.0:8000"] |
|||
ENTRYPOINT ["/usr/bin/binary", "--data-dir=/data", "--http-address=0.0.0.0:8000"] |
|||
|
@ -1,4 +1,4 @@ |
|||
[toolchain] |
|||
channel = "1.56" |
|||
components = ["clippy"] |
|||
targets = ["armv7-unknown-linux-gnueabihf", "aarch64-unknown-linux-gnu"] |
|||
targets = ["aarch64-unknown-linux-gnu"] |
|||
|
Loading…
Reference in new issue