Dockerfile
Some checks failed
Deploy Homepage / build (push) Failing after 2m8s

This commit is contained in:
2025-07-20 03:40:59 +02:00
parent 802db9b7ae
commit 8cdfffdde7
3 changed files with 75 additions and 7 deletions

View File

@@ -10,24 +10,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: package.json
- name: Install
run: npm install
- name: Build
run: npm run build
# build/standalone is the output directory for the Next.js app
# now we want to deploy a container with the built app
- name: Build Docker image
run: docker build -t homepage:latest -f Dockerfile.build .
run: docker build -t homepage:latest .
- name: Stop and remove existing container
run: |
docker stop website-server || true
docker rm website-server || true
- name: Wait for any monitoring services to recognize the stopped container
# sleep for 10 seconds to ensure the container is fully stopped
run: sleep 10
- name: Run Docker container
run: |
docker run -d \