Skip to content

Instantly share code, notes, and snippets.

@a1678991
Created October 8, 2023 20:03
Show Gist options
  • Save a1678991/d00b777d71ca4d5e8b278b500e26710a to your computer and use it in GitHub Desktop.
Save a1678991/d00b777d71ca4d5e8b278b500e26710a to your computer and use it in GitHub Desktop.
steamcmd in arm64 container (DOES NOT WORK)
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
@a1678991
Copy link
Author

a1678991 commented Oct 8, 2023

[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/user/Steam/logs/stderr.txt'
Logging directory: '/home/user/Steam/logs'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1696019544
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: Cannot dlopen("steamservice.so"/0xf03d7cf8, 2)

OK

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
The command '/bin/sh -c DEBUGGER=/usr/local/bin/box86 ./steamcmd.sh 	+login anonymous 	+quit' returned a non-zero code: 255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment