fix if else

This commit is contained in:
Benjamin Brummer
2024-11-29 10:48:14 +01:00
parent d139a48303
commit 641b527702

7
debian/Dockerfile vendored
View File

@@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
gnupg2 \ gnupg2 \
gosu \ gosu \
supervisor \ supervisor \
# Packages to be checked
fonts-noto-cjk \ fonts-noto-cjk \
fonts-noto-cjk-extra \ fonts-noto-cjk-extra \
fonts-wqy-microhei \ fonts-wqy-microhei \
@@ -23,9 +24,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google.gpg] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \ && echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google.gpg] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends google-chrome-stable; \ && apt-get install -y --no-install-recommends google-chrome-stable; \
fi \ elif [ "$(dpkg --print-architecture)" = "arm64" ]; then \
&& if [ "$(dpkg --print-architecture)" = "arm64" ]; then \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
# Packages for chrome
fonts-liberation \ fonts-liberation \
libasound2 \ libasound2 \
libatk-bridge2.0-0 \ libatk-bridge2.0-0 \
@@ -44,7 +45,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libxfixes3 \ libxfixes3 \
libxkbcommon0 \ libxkbcommon0 \
libxrandr2 \ libxrandr2 \
xdg-utils \ xdg-utils; \
fi \ fi \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*