@sidebase/base-config 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/presets/nuxt-app/Dockerfile +0 -4
package/README.md
CHANGED
|
@@ -105,7 +105,7 @@ export default defineNuxtBaseConfig({
|
|
|
105
105
|
| `docker.preInstall` | `""` | Dockerfile lines before `pnpm install` |
|
|
106
106
|
| `docker.buildArgs` | `""` | Dockerfile lines before `COPY . .` |
|
|
107
107
|
| `docker.buildSteps` | `nuxi prepare`, `prisma generate`, `build` | The build commands |
|
|
108
|
-
| `docker.finalStage` | `""` | Dockerfile lines in the final stage, before `CMD` |
|
|
108
|
+
| `docker.finalStage` | `""` | Dockerfile lines in the final stage, before `CMD`. The image runs as root unless this adds `USER node` |
|
|
109
109
|
| `docker.prismaRuntime` | copy schema, install Prisma CLI | Prisma setup in the final stage |
|
|
110
110
|
| `docker.prismaVersion` | your `prisma` version | Prisma CLI version in the image |
|
|
111
111
|
| `docker.startCommand` | `npm exec prisma migrate deploy && exec node ...` | The `CMD`, one line |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sidebase/base-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Shared @sidebase base configuration for Nuxt repos: ESLint / Prisma / tsconfig factories on npm, plus the streamctl file-sync preset payload",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sidebase",
|
|
@@ -50,10 +50,6 @@ WORKDIR /app
|
|
|
50
50
|
|
|
51
51
|
${DOCKER_PRISMA_RUNTIME}
|
|
52
52
|
${DOCKER_FINAL_STAGE}
|
|
53
|
-
# The container stays root on purpose. A `USER node` switch here breaks any
|
|
54
|
-
# deployment that overrides the CMD with a command needing root: the prisma-studio
|
|
55
|
-
# pods apt-install postgresql-client on start, which fails as an unprivileged user.
|
|
56
|
-
# Set docker.finalStage to "USER node" to opt back in.
|
|
57
53
|
|
|
58
54
|
# start the app
|
|
59
55
|
CMD ${DOCKER_START_COMMAND}
|