mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(docker): fix missing bindings after refactoring
This commit is contained in:
parent
466e7e2fb9
commit
78c88d797c
@ -3,7 +3,7 @@ FROM node:22.14.0-bullseye-slim AS builder
|
|||||||
|
|
||||||
# Install native dependencies since we might be building cross-platform.
|
# Install native dependencies since we might be building cross-platform.
|
||||||
WORKDIR /usr/src/app/build
|
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
|
RUN pnpm install --frozen-lockfile --prod && pnpm rebuild
|
||||||
|
|
||||||
FROM node:22.14.0-bullseye-slim
|
FROM node:22.14.0-bullseye-slim
|
||||||
|
@ -3,7 +3,7 @@ FROM node:22.14.0-alpine AS builder
|
|||||||
|
|
||||||
# Install native dependencies since we might be building cross-platform.
|
# Install native dependencies since we might be building cross-platform.
|
||||||
WORKDIR /usr/src/app
|
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
|
RUN pnpm install --frozen-lockfile --prod && pnpm rebuild
|
||||||
|
|
||||||
FROM node:22.14.0-alpine
|
FROM node:22.14.0-alpine
|
||||||
|
2
apps/server/docker/pnpm-workspace.yaml
Normal file
2
apps/server/docker/pnpm-workspace.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
onlyBuiltDependencies:
|
||||||
|
- better-sqlite3
|
@ -166,10 +166,10 @@
|
|||||||
"defaultConfiguration": "alpine",
|
"defaultConfiguration": "alpine",
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"debian": {
|
"debian": {
|
||||||
"command": "docker build . -t triliumnext -f Dockerfile"
|
"command": "docker build . -t triliumnext-debian -f Dockerfile"
|
||||||
},
|
},
|
||||||
"alpine": {
|
"alpine": {
|
||||||
"command": "docker build . -t triliumnext -f Dockerfile.alpine"
|
"command": "docker build . -t triliumnext-alpine -f Dockerfile.alpine"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -177,7 +177,16 @@
|
|||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"docker-build"
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user