feat: add Dockerfile and .dockerignore, refactor backend to use DATA_DIR for database and uploads

Now able to use docker image
This commit is contained in:
2025-11-11 02:08:48 +01:00
parent 3d9f7d2052
commit 9c61bf2e2c
4 changed files with 60 additions and 18 deletions

11
.gitignore vendored
View File

@@ -8,26 +8,19 @@ dist/
frontend/dist/
backend/dist/
# SQLite database and uploads
backend/db.sqlite
backend/uploads/
# Persistent backend data (database and uploads)
backend/data/
# Logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
pnpm-debug.log*
# Editor directories and files
.vscode/
.idea/
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Environment files (if any)
.env