Ensure /bin exists

This commit is contained in:
Alexandre
2024-03-17 09:52:26 +01:00
parent 3f90925620
commit a29a371cbc
89 changed files with 290 additions and 29 deletions

View File

@@ -32,13 +32,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
RUN if [ -f /config/settings.js ]; then sed -i "s|/var/lib/sharelatex/data|/config|g" /config/settings.js; fi && \
if [ -f /etc/sharelatex/settings.js ]; then sed -i "s|/var/lib/sharelatex/data|/config|g" /etc/sharelatex/settings.js; fi
##################
# 3 Install apps #
##################
# Add rootfs
COPY rootfs/ /
RUN \
apt-get install -y gnupg curl && \
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
@@ -48,6 +41,16 @@ RUN \
apt-get update && \
apt-get install -y mongodb-org
##################
# 3 Install apps #
##################
# Copy local files
COPY rootfs/ /
# Uses /bin for compatibility purposes
RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then if [ -d /bin ]; then cp -rn /bin/* /usr/bin/ && rm -r /bin; fi; ln -s /usr/bin /bin; fi
# Modules
ARG MODULES="00-banner.sh 01-custom_script.sh 00-global_var.sh"