2022-02-26 14:37:26 -03:00
|
|
|
FROM ubuntu:20.04
|
2021-09-19 13:47:47 -03:00
|
|
|
|
2022-02-26 14:37:26 -03:00
|
|
|
LABEL maintainer="NoskLo"
|
2022-01-04 08:28:34 -03:00
|
|
|
|
2021-09-19 13:47:47 -03:00
|
|
|
# Install tools required for the project
|
|
|
|
|
# Run 'docker build --no-cache .' to udpate dependencies
|
|
|
|
|
RUN dpkg --add-architecture armhf
|
|
|
|
|
RUN apt update && apt full-upgrade -y
|
2022-02-26 14:37:26 -03:00
|
|
|
RUN apt install -y tzdata && apt clean
|
2021-09-19 13:47:47 -03:00
|
|
|
RUN apt install -y \
|
|
|
|
|
gcc-arm-linux-gnueabihf \
|
|
|
|
|
git \
|
|
|
|
|
make \
|
|
|
|
|
cmake \
|
|
|
|
|
python3 \
|
|
|
|
|
curl \
|
|
|
|
|
libsdl2-2.0-0 \
|
2022-02-26 14:37:26 -03:00
|
|
|
nano \
|
2021-09-19 13:47:47 -03:00
|
|
|
libc6:armhf \
|
|
|
|
|
libncurses5:armhf \
|
2022-02-26 14:37:26 -03:00
|
|
|
libstdc++6:armhf \
|
|
|
|
|
&& apt clean \
|
|
|
|
|
&& apt purge -y wget
|
2021-09-19 13:47:47 -03:00
|
|
|
|
|
|
|
|
# Install the box86 to emulate x86 platform (for steamcmd cliente)
|
|
|
|
|
WORKDIR /root
|
2022-02-26 14:37:26 -03:00
|
|
|
RUN git clone https://github.com/ptitSeb/box86 \
|
|
|
|
|
&& mkdir -p /root/box86/build \
|
|
|
|
|
&& cd /root/box86/build \
|
|
|
|
|
&& cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
&& make -j4 \
|
|
|
|
|
&& make install \
|
|
|
|
|
&& cd /root \
|
|
|
|
|
&& rm -rf /root/box86
|
2021-09-19 13:47:47 -03:00
|
|
|
|
|
|
|
|
# Install steamcmd and download the valheim server:
|
|
|
|
|
WORKDIR /root/steam
|
|
|
|
|
RUN curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
|
2022-01-04 08:28:34 -03:00
|
|
|
# RUN export DEBUGGER="/usr/local/bin/box86"
|
2021-10-10 12:55:40 -03:00
|
|
|
ENV BOX86_DYNAREC "0"
|
2022-01-04 08:28:34 -03:00
|
|
|
ENV DEBUGGER "/usr/local/bin/box86"
|
2021-09-19 13:47:47 -03:00
|
|
|
RUN ./steamcmd.sh +@sSteamCmdForcePlatformType linux +login anonymous +force_install_dir /root/valheim_server +app_update 896660 validate +quit
|
|
|
|
|
|
|
|
|
|
## Box64 installation
|
|
|
|
|
WORKDIR /root
|
2022-02-26 14:37:26 -03:00
|
|
|
RUN git clone https://github.com/ptitSeb/box64 \
|
|
|
|
|
&& mkdir -p /root/box64/build \
|
|
|
|
|
&& cd /root/box64/build \
|
|
|
|
|
&& cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
&& make -j4 \
|
|
|
|
|
&& make install \
|
|
|
|
|
&& cd /root \
|
|
|
|
|
&& rm -rf /root/box64
|
2022-01-04 08:28:34 -03:00
|
|
|
|
2022-01-05 12:02:24 -03:00
|
|
|
# Specific for run Valheim server
|
|
|
|
|
EXPOSE 2456-2457/udp
|
2022-01-05 12:03:37 -03:00
|
|
|
WORKDIR /root
|
2022-01-04 08:28:34 -03:00
|
|
|
COPY bootstrap .
|
|
|
|
|
CMD ["/root/bootstrap"]
|