Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixes build error if using arm64 #12

Merged
merged 2 commits into from
May 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
FROM debian:buster
# syntax=docker/dockerfile:1
ARG VERSION="bullseye-backports"
FROM debian:${VERSION}

RUN set -x \
&& apt-get update && apt-get install -y \
build-essential \
binfmt-support \
qemu \
qemu-user-static \
sudo \
lsof \

ENV VERSION="bullseye"
ENV PACKAGES="binfmt-support build-essential lsof sudo util-linux fdisk"
ENV BPO="qemu qemu-user-static"

RUN set -ex \
&& apt-get update \
&& apt-get install --no-install-recommends --yes ${PACKAGES} \
&& apt-get install --no-install-recommends --yes -t ${VERSION}-backports ${BPO} \
&& apt autoremove \
&& rm -rf /var/lib/apt/lists/*

COPY . /CustoPiZer

ENTRYPOINT [ "/bin/bash" ]
CMD [ "/CustoPiZer/customize" ]
CMD [ "/CustoPiZer/customize" ]