1
0

chore: Fix docker build
All checks were successful
Remote Deploy / deploy (push) Successful in 11s

This commit is contained in:
2026-02-11 11:09:54 +01:00
parent faeb0323ba
commit 16b8b9ae10
4 changed files with 18 additions and 8 deletions

View File

@@ -1 +1,7 @@
volume/
node_modules
volume/browser
volume/db
volume/downloads
volume/errors
.env

View File

@@ -1,14 +1,16 @@
FROM node:18
FROM node:22
WORKDIR /usr/src/app
COPY package*.json ./
COPY . .
RUN npm ci
RUN npm run build
RUN npm run build-noweb
COPY . .
RUN npm prune --production
COPY dist dist
EXPOSE 3000

View File

@@ -6,7 +6,8 @@ services:
ports:
- "3000:3000"
environment:
NODE_ENV: development
NODE_ENV: production
EMAIL: username@spsejecna.cz
PASSWORD: mojesupertajneheslo
volumes:
- ./volume:./usr/src/app/volume
command: npm start
- ./volume:/usr/src/app/volume

View File

@@ -10,6 +10,7 @@
"test": "tsx tests/test.ts",
"start": "concurrently \"NODE_ENV=development tsx server.ts\" \"NODE_ENV=development tsx cron-runner.ts\"",
"build": "tsc && cd web && hugo --gc --minify",
"build-noweb": "tsc",
"serve": "concurrently \"node dist/server.js\" \"node dist/cron-runner.js\"",
"dev-web": "cd web && hugo serve"
},