Fix multi-arch container build
Some checks failed
ecodash/pipeline/head There was a failure building this commit

This commit is contained in:
MassiveBox 2023-07-22 10:24:01 +02:00
parent 6bfe31de56
commit c650a1fae1
Signed by: massivebox
GPG key ID: 9B74D3A59181947D
2 changed files with 21 additions and 18 deletions

View file

@ -1,7 +1,10 @@
FROM debian:latest
WORKDIR /app
COPY app app
COPY ecodash_arm ecodash_arm
COPY ecodash_x86 ecodash_x86
COPY templates templates
RUN if [ "$(uname -m)" = "aarch64" ]; then mv ecodash_arm app; rm ecodash_x86; else mv ecodash_x86 app; rm ecodash_arm fi
CMD ["./app"]