@@ -7,16 +7,15 @@ LABEL org.opencontainers.image.source="https://github.com/CubeCoders/docke
77LABEL org.opencontainers.image.licenses=MIT
88
99ENV AMP_CONTAINER="DOCKER"
10- ENV LD_LIBRARY_PATH="./:/opt/cubecoders/amp/:/AMP/"
1110
12- ARG DEBIAN_FRONTEND=noninteractive
11+ ARG DEBIAN_FRONTEND=" noninteractive"
1312ARG TARGETARCH
1413
1514# Update base packages and install dependencies
1615RUN set -eux; \
1716 mkdir -p /usr/share/man/man1; \
1817 apt-get update; \
19- apt-get install -y \
18+ apt-get install -o APT::Keep-Downloaded-Packages= "false" - y \
2019 ca-certificates curl wget tar unzip xz-utils bzip2 \
2120 coreutils procps iproute2 iputils-ping socat jq git git-lfs gnupg tmux dbus \
2221 tini tzdata locales \
@@ -30,63 +29,70 @@ RUN set -eux; \
3029 # Required for Eco
3130 libgdiplus \
3231 # Required for Pavlov VR (and variously some others)
33- gdb libc++-dev; \
32+ gdb libc++-dev; \
33+ \
3434 case "$TARGETARCH" in \
3535 amd64) \
3636 dpkg --add-architecture i386; \
3737 apt-get update; \
38- apt-get install -y \
38+ apt-get install -o APT::Keep-Downloaded-Packages= "false" - y \
3939 # Required for steamcmd
4040 libgcc-s1:i386 \
4141 # Others
4242 libstdc++6:i386 zlib1g:i386 libbz2-1.0:i386 libcurl4:i386 libcurl3-gnutls:i386 libcurl4-gnutls-dev:i386 \
4343 libncurses6:i386 libncurses5:i386 libtinfo6:i386 libtinfo5:i386 libsdl2-2.0-0:i386 libssl3:i386; \
4444 ;; \
45+ \
4546 arm64) \
4647 dpkg --add-architecture armhf; \
4748 apt-get update; \
48- apt-get install -y \
49+ apt-get install -o APT::Keep-Downloaded-Packages= "false" - y \
4950 # Required for steamcmd
5051 libgcc-s1:armhf \
5152 # Others
5253 libstdc++6:armhf zlib1g:armhf libbz2-1.0:armhf libcurl4:armhf libcurl3-gnutls:armhf libcurl4-gnutls-dev:armhf \
5354 libncurses6:armhf libncurses5:armhf libtinfo6:armhf libtinfo5:armhf libsdl2-2.0-0:armhf libssl3:armhf; \
55+ \
5456 # Add box86/box64
5557 install -d -m 0755 /etc/apt/keyrings; \
5658 wget -qO- "https://pi-apps-coders.github.io/box86-debs/KEY.gpg" | gpg --dearmor -o /etc/apt/keyrings/box86-archive-keyring.gpg; \
5759 printf "Types: deb\n URIs: https://Pi-Apps-Coders.github.io/box86-debs/debian\n Suites: ./\n Signed-By: /etc/apt/keyrings/box86-archive-keyring.gpg" | tee /etc/apt/sources.list.d/box86.sources >/dev/null; \
5860 wget -qO- "https://pi-apps-coders.github.io/box64-debs/KEY.gpg" | gpg --dearmor -o /etc/apt/keyrings/box64-archive-keyring.gpg; \
5961 printf "Types: deb\n URIs: https://Pi-Apps-Coders.github.io/box64-debs/debian\n Suites: ./\n Signed-By: /etc/apt/keyrings/box64-archive-keyring.gpg" | tee /etc/apt/sources.list.d/box64.sources >/dev/null; \
6062 apt-get update; \
61- apt-get install -y \
63+ apt-get install -o APT::Keep-Downloaded-Packages= "false" - y \
6264 box86-generic-arm:armhf box64-generic-arm; \
6365 ;; \
6466 esac; \
67+ \
6568 # Temp fix if libssl1.1 needed
66- case "$TARGETARCH" in \
69+ case "${ TARGETARCH} " in \
6770 amd64) wget -qO libssl1.1.deb https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb;; \
6871 arm64) wget -qO libssl1.1.deb https://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb;; \
6972 esac; \
7073 apt-get install -y ./libssl1.1.deb; \
7174 rm libssl1.1.deb; \
75+ \
7276 # Install AMP instance manager
73- case "$TARGETARCH" in \
77+ case "${ TARGETARCH} " in \
7478 amd64) wget -q https://cdn-repo.c7rs.com/ampinstmgr-latest.tgz;; \
7579 arm64) wget -q https://cdn-repo.c7rs.com/aarch64/ampinstmgr-latest.tgz;; \
7680 esac; \
7781 tar -xzf ampinstmgr-latest.tgz -C /; \
7882 rm ampinstmgr-latest.tgz; \
83+ \
7984 # Set up locales
8085 sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen; \
8186 locale-gen; \
87+ \
8288 apt-get clean; \
8389 rm -rf /var/lib/apt/lists/*
8490
85- ENV LANG=en_US.UTF-8
86- ENV LANGUAGE=en_US:en
87- ENV LC_ALL=en_US.UTF-8
91+ ENV LANG=" en_US.UTF-8"
92+ ENV LANGUAGE=" en_US:en"
93+ ENV LC_ALL=" en_US.UTF-8"
8894
89- COPY ./scripts/ampstart.sh /ampstart.sh
95+ COPY ./scripts/base/ ampstart.sh /ampstart.sh
9096RUN chmod +x /ampstart.sh
9197ENTRYPOINT ["/usr/bin/tini" , "-g" , "--" , "/ampstart.sh" ]
9298CMD []
0 commit comments