Added files

This commit is contained in:
Tiemen van Olst
2025-09-08 14:00:22 +02:00
parent f26e61c351
commit cacc69e0f5
2 changed files with 29 additions and 0 deletions

4
.dockerignore Normal file
View File

@@ -0,0 +1,4 @@
node_modules
.nuxt
dist
.git

25
entrypoint.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
set -e
# Clone of pull repo
if [ ! -d ".git" ]; then
echo "Cloning repo..."
git clone -b ${GIT_BRANCH:-main} ${GIT_REPO_URL} .
else
echo "Pulling latest changes..."
git reset --hard
git clean -fd
git pull origin ${GIT_BRANCH:-main}
fi
# Dependencies
echo "Installing dependencies..."
npm install
# Build
echo "Building Nuxt app..."
npm run build
# Start
echo "Starting Nuxt app..."
exec npm run start