try CORS 2
All checks were successful
Deploy App / deploy (push) Successful in 15s

This commit is contained in:
valere
2025-12-17 20:58:36 +01:00
parent 3db88db319
commit 3546a05876
3 changed files with 42 additions and 4 deletions

38
.dockerignore Normal file
View File

@@ -0,0 +1,38 @@
# Dependency directories
node_modules/
# Build output
.next/
build/
dist/
# Environment files
.env
.env.local
.env.development
.env.test
.env.production
# Debug logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Local development
.DS_Store
.idea/
.vscode/
*.swp
*.swo
# Git
.git/
.gitignore
# Docker
Dockerfile
.dockerignore
# OS generated files
**/.DS_Store
**/Thumbs.db

View File

@@ -4,4 +4,4 @@ WORKDIR /app
COPY . . COPY . .
RUN npm ci RUN npm ci
CMD ["npx", "serve", "/mnt/media/files", "-c", "serve.json"] CMD ["npx", "serve", "/mnt/media/files", "-c", "/app/serve.json"]

View File

@@ -1,8 +1,8 @@
{ {
"scripts": { "scripts": {
"up": "bash -c 'source /var/docker-web/config.sh && source config.sh && exec docker-compose up'", "up": "bash -c 'source /var/docker-web/config.sh && source env.sh && exec docker-compose up'",
"down": "bash -c 'source /var/docker-web/config.sh && source config.sh && docker-compose down'", "down": "bash -c 'source /var/docker-web/config.sh && source env.sh && docker-compose down'",
"build": "bash -c 'source /var/docker-web/config.sh && source config.sh && docker-compose build'" "build": "bash -c 'source /var/docker-web/config.sh && source env.sh && docker-compose build'"
}, },
"dependencies": { "dependencies": {
"serve": "^14.2.5" "serve": "^14.2.5"