1- FROM --platform=$TARGETPLATFORM debian:bookworm-slim
1+ # Base image for AMP containers
22
3- LABEL org.opencontainers.image.source="https://github.com/CubeCoders/dockerfiles"
4- LABEL org.opencontainers.image.licenses=MIT
3+ FROM --platform=$TARGETPLATFORM debian:bookworm-slim
54
6- ENV AMP_CONTAINER= "DOCKER "
7- ENV LD_LIBRARY_PATH= "./:/opt/cubecoders/amp/:/AMP/"
5+ LABEL org.opencontainers.image.source= "https://github.com/CubeCoders/dockerfiles "
6+ LABEL org.opencontainers.image.licenses=MIT
87
9- ARG DEBIAN_FRONTEND=noninteractive
10- ARG TARGETARCH
8+ ENV AMP_CONTAINER="DOCKER"
9+ ENV LD_LIBRARY_PATH="./:/opt/cubecoders/amp/:/AMP/"
10+
11+ ARG DEBIAN_FRONTEND=noninteractive
12+ ARG TARGETARCH
1113
1214# Update base packages and install dependencies
13- RUN mkdir -p /usr/share/man/man1 &&\
14- apt-get update &&\
15- apt-get install -y --no-install-recommends ca-certificates software-properties-common curl wget tar unzip xz-utils bzip2\
16- coreutils procps net-tools iproute2 inetutils-ping socat jq git git-lfs gnupg lsof tmux sqlite3 gdb\
17- tini tzdata locales\
18- xvfb xauth libxi6\
19- libc6 libc++1 libc++abi1 libcurl4 libatomic1 libpulse-dev liblua5.3-0 libfontconfig1 libgdiplus libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2debian libssl-dev &&\
20- if [ "$TARGETARCH" = "amd64" ]; then\
21- dpkg --add-architecture i386 &&\
22- apt-get update &&\
23- apt-get install -y --no-install-recommends libc6:i386 libc++1:i386 libc++abi1:i386 libstdc++6:i386 libgcc-s1:i386 zlib1g:i386 libbz2-1.0:i386 libcurl4:i386 libtinfo6:i386\
24- libncurses6:i386 libncurses5:i386 libtinfo5:i386 libsdl2-2.0-0:i386 libsdl1.2-compat:i386 libssl-dev:i386;\
25- fi &&\
26- apt-get clean &&\
27- rm -rf /var/lib/apt/lists/* &&\
28- case "$TARGETARCH" in\
29- amd64) wget -q https://cdn-repo.c7rs.com/ampinstmgr-latest.tgz ;;\
30- arm64) wget -q https://cdn-repo.c7rs.com/aarch64/ampinstmgr-latest.tgz ;;\
31- esac &&\
32- tar -xzf ampinstmgr-latest.tgz -C / &&\
33- rm ampinstmgr-latest.tgz
15+ RUN mkdir -p /usr/share/man/man1 && \
16+ apt-get update && \
17+ apt-get install -y --no-install-recommends \
18+ ca-certificates software-properties-common curl wget tar unzip xz-utils bzip2 \
19+ coreutils procps net-tools iproute2 inetutils-ping socat jq git git-lfs gnupg lsof tmux sqlite3 gdb \
20+ tini tzdata locales \
21+ xvfb xauth libxi6 \
22+ libc6 libc++1 libc++abi1 libcurl4 libatomic1 libpulse-dev liblua5.3-0 libfontconfig1 libgdiplus libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2debian libssl-dev && \
23+ if [ "$TARGETARCH" = "amd64" ]; then \
24+ dpkg --add-architecture i386 && \
25+ apt-get update && \
26+ apt-get install -y --no-install-recommends \
27+ libc6:i386 libc++1:i386 libc++abi1:i386 libstdc++6:i386 libgcc-s1:i386 zlib1g:i386 libbz2-1.0:i386 libcurl4:i386 libtinfo6:i386 \
28+ libncurses6:i386 libncurses5:i386 libtinfo5:i386 libsdl2-2.0-0:i386 libsdl1.2-compat:i386 libssl-dev:i386; \
29+ fi && \
30+ apt-get clean && \
31+ rm -rf /var/lib/apt/lists/* && \
32+ case "$TARGETARCH" in \
33+ amd64) wget -q https://cdn-repo.c7rs.com/ampinstmgr-latest.tgz ;; \
34+ arm64) wget -q https://cdn-repo.c7rs.com/aarch64/ampinstmgr-latest.tgz ;; \
35+ esac && \
36+ tar -xzf ampinstmgr-latest.tgz -C / && \
37+ rm ampinstmgr-latest.tgz
3438
3539# Temp fix if libssl1.1 needed
36- RUN case "$TARGETARCH" in\
37- amd64) wget -qO libssl1.1.deb https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb ;;\
38- arm64) wget -qO libssl1.1.deb https://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb ;;\
39- esac &&\
40- apt-get update &&\
41- apt-get install -y --no-install-recommends ./libssl1.1.deb &&\
42- rm libssl1.1.deb &&\
43- apt-get clean &&\
44- rm -rf /var/lib/apt/lists/*
40+ RUN case "$TARGETARCH" in \
41+ amd64) wget -qO libssl1.1.deb https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb ;; \
42+ arm64) wget -qO libssl1.1.deb https://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb ;; \
43+ esac & &\
44+ apt-get update && \
45+ apt-get install -y --no-install-recommends ./libssl1.1.deb && \
46+ rm libssl1.1.deb && \
47+ apt-get clean && \
48+ rm -rf /var/lib/apt/lists/*
4549
4650 # Configure locale
47- RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen &&\
48- locale-gen
51+ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
52+ locale-gen
4953
50- ENV LANG=en_US.UTF-8
51- ENV LANGUAGE=en_US:en
52- ENV LC_ALL=en_US.UTF-8
54+ ENV LANG=en_US.UTF-8
55+ ENV LANGUAGE=en_US:en
56+ ENV LC_ALL=en_US.UTF-8
5357
54- COPY ./scripts/ampstart.sh /ampstart.sh
55- RUN chmod +x /ampstart.sh
56- ENTRYPOINT ["/usr/bin/tini" , "-g" , "--" ]
57- CMD ["/ampstart.sh" ]
58+ COPY ./scripts/ampstart.sh /ampstart.sh
59+ RUN chmod +x /ampstart.sh
60+ ENTRYPOINT ["/usr/bin/tini" , "-g" , "--" ]
61+ CMD ["/ampstart.sh" ]
0 commit comments