mirror of
https://github.com/apotdevin/thunderhub.git
synced 2026-08-13 12:33:08 +02:00
chore: docker changes (#679)
Co-authored-by: Bufo <bufo24@users.noreply.github.com>
This commit is contained in:
parent
581b3014a5
commit
4a4bf864ac
2 changed files with 13 additions and 2 deletions
|
|
@ -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
11
docker-compose.yaml
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue