chore(docker): fix missing bindings after refactoring

This commit is contained in:
Elian Doran 2025-04-30 10:01:56 +03:00
parent 466e7e2fb9
commit 78c88d797c
No known key found for this signature in database
4 changed files with 16 additions and 5 deletions

View File

@ -3,7 +3,7 @@ FROM node:22.14.0-bullseye-slim AS builder
# Install native dependencies since we might be building cross-platform.
WORKDIR /usr/src/app/build
COPY ./dist/package.json ./dist/pnpm-lock.yaml /usr/src/app/
COPY ./dist/package.json ./dist/pnpm-lock.yaml ./docker/pnpm-workspace.yaml /usr/src/app/
RUN pnpm install --frozen-lockfile --prod && pnpm rebuild
FROM node:22.14.0-bullseye-slim

View File

@ -3,7 +3,7 @@ FROM node:22.14.0-alpine AS builder
# Install native dependencies since we might be building cross-platform.
WORKDIR /usr/src/app
COPY ./dist/package.json ./dist/pnpm-lock.yaml /usr/src/app/
COPY ./dist/package.json ./dist/pnpm-lock.yaml ./docker/pnpm-workspace.yaml /usr/src/app/
RUN pnpm install --frozen-lockfile --prod && pnpm rebuild
FROM node:22.14.0-alpine

View File

@ -0,0 +1,2 @@
onlyBuiltDependencies:
- better-sqlite3

View File

@ -166,10 +166,10 @@
"defaultConfiguration": "alpine",
"configurations": {
"debian": {
"command": "docker build . -t triliumnext -f Dockerfile"
"command": "docker build . -t triliumnext-debian -f Dockerfile"
},
"alpine": {
"command": "docker build . -t triliumnext -f Dockerfile.alpine"
"command": "docker build . -t triliumnext-alpine -f Dockerfile.alpine"
}
}
},
@ -177,7 +177,16 @@
"dependsOn": [
"docker-build"
],
"command": "docker run -p 8081:8080 triliumnext"
"executor": "nx:run-commands",
"defaultConfiguration": "alpine",
"configurations": {
"debian": {
"command": "docker run -p 8081:8080 triliumnext-debian"
},
"alpine": {
"command": "docker run -p 8081:8080 triliumnext-alpine"
}
}
}
}
}