add startup script to frontend docker container

This commit is contained in:
maxDorninger
2025-06-30 15:02:17 +02:00
parent 548ba4535c
commit e965490a65
2 changed files with 18 additions and 1 deletions

View File

@@ -29,8 +29,9 @@ ENV PUBLIC_SSR_WEB=false
COPY --from=build /app/build/ ./build/
COPY package*.json ./
COPY --chmod=755 mediamanager-frontend-startup.sh ./
RUN npm ci --only=production
EXPOSE 3000
USER node
CMD ["node","build/index.js"]
CMD ["/app/mediamanager-frontend-startup.sh"]

View File

@@ -0,0 +1,16 @@
#!/bin/bash
# This script is used to start the MediaManager backend service.
# text created with https://patorjk.com/software/taag/ font: Slanted
cat << EOF
__ ___ ___ __ ___ ______ __ __
/ |/ /__ ____/ (_)___ _/ |/ /___ _____ ____ _____ ____ _____ / ____/________ ____ / /____ ____ ____/ /
/ /|_/ / _ \/ __ / / __ `/ /|_/ / __ `/ __ \/ __ `/ __ `/ _ \/ ___/ / /_ / ___/ __ \/ __ \/ __/ _ \/ __ \/ __ /
/ / / / __/ /_/ / / /_/ / / / / /_/ / / / / /_/ / /_/ / __/ / / __/ / / / /_/ / / / / /_/ __/ / / / /_/ /
/_/ /_/\___/\__,_/_/\__,_/_/ /_/\__,_/_/ /_/\__,_/\__, /\___/_/ /_/ /_/ \____/_/ /_/\__/\___/_/ /_/\__,_/
/____/
EOF
echo "Buy me a coffee at https://buymeacoffee.com/maxdorninger"
echo "Starting MediaManager frontend service..."
node build/index.js