Created
October 8, 2023 20:03
-
-
Save a1678991/d00b777d71ca4d5e8b278b500e26710a to your computer and use it in GitHub Desktop.
steamcmd in arm64 container (DOES NOT WORK)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stable-slim as box | |
RUN dpkg --add-architecture armhf | |
RUN apt-get update && apt-get full-upgrade -y | |
RUN apt-get install -y git binfmt-support build-essential cmake python3 python3-pip gcc-arm-linux-gnueabihf libc6-dev-armhf-cross libc6:armhf libncurses5:armhf libstdc++6:armhf && apt-get clean | |
# install box86 and box64 | |
RUN mkdir -p /home/user/box/usr/share/binfmts/ | |
WORKDIR /build | |
ADD https://api.github.com/repos/ptitSeb/box86/releases/latest latest_box86 | |
RUN git clone https://github.com/ptitSeb/box86 | |
WORKDIR /build/box86/build | |
RUN cmake .. -DARM64=1 -DARM_DYNAREC=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo; make -j$(nproc) && make install DESTDIR=/home/user/box | |
RUN cp /build/box86/build/system/box86.conf /home/user/box/usr/share/binfmts/ | |
WORKDIR /build | |
ADD https://api.github.com/repos/ptitSeb/box64/releases/latest latest_box64 | |
RUN git clone https://github.com/ptitSeb/box64 | |
WORKDIR /build/box64/build | |
RUN cmake .. -DARM64=1 -DARM_DYNAREC=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo; make -j$(nproc) && make install DESTDIR=/home/user/box | |
RUN cp /build/box64/build/system/box64.conf /home/user/box/usr/share/binfmts/ | |
FROM debian:stable-slim as game | |
RUN dpkg --add-architecture armhf | |
RUN apt-get update && apt-get install -y libc6 libc6:armhf libstdc++6 libstdc++6:armhf ca-certificates && apt-get clean | |
RUN useradd -m user | |
USER user | |
ENV USER user | |
ENV HOME /home/user | |
COPY --from=box /home/user/box / | |
RUN mkdir -p /home/user/steamcmd | |
WORKDIR /home/user/steamcmd | |
ADD --chown=user:user "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" steamcmd_linux.tar.gz | |
RUN tar zxvf steamcmd_linux.tar.gz | |
RUN DEBUGGER=/usr/local/bin/box86 ./steamcmd.sh \ | |
+login anonymous \ | |
+quit |
Author
a1678991
commented
Oct 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment