diff --git a/Dockerfile b/Dockerfile index 29980560..03582f19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..145c3ddf --- /dev/null +++ b/docker-compose.yaml @@ -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"