add docker armv7 & armv8 files
This commit is contained in:
parent
661b4a8869
commit
e247d53dd5
2 changed files with 32 additions and 0 deletions
16
Dockerfile.armv7
Normal file
16
Dockerfile.armv7
Normal file
|
@ -0,0 +1,16 @@
|
|||
FROM mkaczanowski/archlinuxarm:armv7 as builder
|
||||
|
||||
RUN pacman -Sy --noconfirm rustup gcc llvm clang glibc
|
||||
RUN rustup default nightly
|
||||
|
||||
WORKDIR /usr/src/pastebin
|
||||
COPY . .
|
||||
|
||||
RUN cargo install --path . --root /tmp/pastebin
|
||||
|
||||
FROM mkaczanowski/archlinuxarm:armv7
|
||||
RUN pacman -Sy --noconfirm glibc
|
||||
COPY --from=builder /tmp/pastebin/bin/pastebin /usr/local/bin/pastebin
|
||||
|
||||
ENTRYPOINT ["pastebin"]
|
||||
CMD ["--help"]
|
16
Dockerfile.armv8
Normal file
16
Dockerfile.armv8
Normal file
|
@ -0,0 +1,16 @@
|
|||
FROM mkaczanowski/archlinuxarm:armv8 as builder
|
||||
|
||||
RUN pacman -Sy --noconfirm rustup gcc llvm clang glibc
|
||||
RUN rustup default nightly
|
||||
|
||||
WORKDIR /usr/src/pastebin
|
||||
COPY . .
|
||||
|
||||
RUN cargo install --path . --root /tmp/pastebin
|
||||
|
||||
FROM mkaczanowski/archlinuxarm:armv8
|
||||
RUN pacman -Sy --noconfirm glibc
|
||||
COPY --from=builder /tmp/pastebin/bin/pastebin /usr/local/bin/pastebin
|
||||
|
||||
ENTRYPOINT ["pastebin"]
|
||||
CMD ["--help"]
|
Loading…
Reference in a new issue