chore: docker changes (#679)

Co-authored-by: Bufo <bufo24@users.noreply.github.com>
This commit is contained in:
Bufo 2026-03-26 11:47:41 +01:00 committed by GitHub
parent 581b3014a5
commit 4a4bf864ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View file

@ -16,7 +16,7 @@ RUN apk add --update --no-cache \
# Install app dependencies
COPY package.json package-lock.json ./
RUN npm ci
RUN --mount=type=cache,target=/root/.npm npm ci
# ---------------
# Build App
@ -33,7 +33,7 @@ ENV NODE_ENV=${NODE_ENV}
# Build the NestJS and Vite application
COPY . .
RUN npm run build:nest && npm run build:client
RUN npm run build:nest & npm run build:client & wait
# Remove non production necessary modules
RUN npm prune --omit=dev

11
docker-compose.yaml Normal file
View file

@ -0,0 +1,11 @@
services:
thunderhub:
build: .
restart: on-failure
ports:
- 3000:3000
volumes:
- ./local_data:/data
environment:
LOG_LEVEL: "debug"
ACCOUNT_CONFIG_PATH: "/data/thubConfig.yaml"