Refactor Dockerfile for improved build process; switch to node:20 base image, add build step, and configure volume and port exposure. Update package dependencies for bcrypt and bcryptjs, remove unused files, and enhance README with clearer project structure and setup instructions.

This commit is contained in:
2025-06-18 17:22:40 +02:00
parent dd10624ce4
commit 7e8aa3f498
11 changed files with 591 additions and 678 deletions

View File

@@ -1,7 +1,7 @@
import { NextResponse } from 'next/server';
import fs from 'fs';
import path from 'path';
import bcrypt from 'bcrypt';
import bcrypt from 'bcryptjs';
const adminPath = path.join(process.cwd(), 'posts', 'admin.json');
const tempPath = path.join(process.cwd(), 'posts', 'admin.json.tmp');

View File

@@ -68,17 +68,13 @@ export default function RootLayout({
</div>
</header>
{children}
<footer className="bg-gray-100 p-4">
<footer className="bg-gray-100 p-2">
<div className="container mx-auto flex flex-col md:flex-row justify-between items-center">
<p>
<span>
&copy; {new Date().getFullYear()} {blogOwner}
</span>
<span className="text-gray-500 text-right" style={{ fontSize: '12px' }}>
Du bist auf dem Development-Server.
Er ist nicht stabil und kann sich jederzeit ändern.
</span>
</p>
<div className="text-center">
<span className="text-gray-500" style={{ fontSize: '12px' }}>
&copy; {new Date().getFullYear()} {blogOwner}
</span>
</div>
</div>
</footer>
</body>