Allow APP_VERSION to be empty string + dockerFile fix (#10900)

# Introduction
No choice but to allow APP_VERSION to be an empty string as it's though
to dynamically define dockerfile env vars
This commit is contained in:
Paul Rastoin
2025-03-14 17:25:36 +01:00
committed by GitHub
parent 326acfe9a5
commit 3168958f8a
4 changed files with 10 additions and 6 deletions

View File

@ -67,6 +67,7 @@ ARG SENTRY_RELEASE
ENV SENTRY_RELEASE $SENTRY_RELEASE
ARG APP_VERSION
ENV APP_VERSION $APP_VERSION
# Copy built applications from previous stages
COPY --chown=1000 --from=twenty-server-build /app /app

View File

@ -1,11 +1,6 @@
#!/bin/sh
set -e
# Set APP_VERSION only if it has a value
if [ ! -z "${APP_VERSION}" ]; then
export APP_VERSION="${APP_VERSION}"
fi
# Check if the initialization has already been done and that we enabled automatic migration
if [ "${DISABLE_DB_MIGRATIONS}" != "true" ] && [ ! -f /app/docker-data/db_status ]; then
echo "Running database setup and migrations..."