mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-05-19 13:55:11 -04:00
add startup script to frontend docker container
This commit is contained in:
@@ -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"]
|
||||
|
||||
16
web/mediamanager-frontend-startup.sh
Normal file
16
web/mediamanager-frontend-startup.sh
Normal 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
|
||||
Reference in New Issue
Block a user