Skip to content

Commit

Permalink
fix: Remove platform dependant packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Oct 9, 2023
1 parent bb0572c commit 728cab6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ FROM qemux/qemu-host as builder

FROM debian:bookworm-slim

ARG TARGETARCH
ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND noninteractive

RUN if [ "$TARGETARCH" = "arm64" ]; then \
PKG="qemu-user"; fi && \
if [ "$TARGETARCH" = "amd64" ]; then \
PKG="xserver-xorg-video-intel"; fi && \
apt-get update && apt-get -y upgrade && \
RUN apt-get update && apt-get -y upgrade && \
apt-get --no-install-recommends -y install \
curl \
cpio \
Expand All @@ -34,7 +29,6 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
ca-certificates \
netcat-openbsd \
qemu-system-x86 \
${PKG} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand Down

0 comments on commit 728cab6

Please sign in to comment.