-
Notifications
You must be signed in to change notification settings - Fork 0
Hotfix - permission updates for PM / TM roles #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fe1b85f
4f14fb9
bb644fb
1490cee
2c137f1
618c26e
b620db9
1c01ce7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| .git | ||
| .github | ||
| node_modules | ||
| dist | ||
| coverage | ||
| .env | ||
| .env.* | ||
| npm-debug.log* | ||
| pnpm-debug.log* |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,6 @@ | |
| FROM node:22.13.1-alpine | ||
|
|
||
| RUN apk add --no-cache bash git | ||
| RUN apk update | ||
|
|
||
| ARG RESET_DB_ARG=false | ||
| ENV RESET_DB=$RESET_DB_ARG | ||
|
|
@@ -12,9 +11,15 @@ ENV SEED_DATA=$SEED_DATA_ARG | |
| ENV PRISMA_CLI_BINARY_TARGETS=linux-musl-openssl-3.0.x | ||
|
|
||
| WORKDIR /app | ||
| COPY . . | ||
| COPY --chown=node:node . . | ||
| RUN npm install pnpm -g | ||
| RUN pnpm install | ||
| RUN pnpm install --frozen-lockfile | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ |
||
| RUN pnpm run build | ||
| RUN chmod +x appStartUp.sh | ||
| CMD ./appStartUp.sh | ||
|
|
||
| USER node | ||
|
|
||
| HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| CMD wget -q -O /dev/null "http://127.0.0.1:${PORT:-3000}/v6/projects/health" || exit 1 | ||
|
|
||
| CMD ["./appStartUp.sh"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,4 @@ set -eo pipefail | |
| export DATABASE_URL=$(echo -e ${DATABASE_URL}) | ||
|
|
||
| # Start the app | ||
| pnpm start:prod | ||
| exec node dist/src/main | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
| "start:dev": "nest start --watch", | ||
| "start:debug": "nest start --debug --watch", | ||
| "start:prod": "node dist/src/main", | ||
| "lint": "eslint \"{src,apps,libs,test,prisma}/**/*.ts\" --fix", | ||
| "lint": "eslint \"{src,apps,libs,test,prisma}/**/*.ts\" --fix --no-error-on-unmatched-pattern", | ||
| "test": "jest --config ./jest.config.js", | ||
| "test:watch": "jest --config ./jest.config.js --watch", | ||
| "test:cov": "jest --config ./jest.config.js --coverage", | ||
|
|
@@ -104,14 +104,17 @@ | |
| "packageManager": "[email protected]+sha512.41872f037ad22f7348e3b1debbaf7e867cfd448f2726d9cf74c08f19507c31d2c8e7a11525b983febc2df640b5438dee6023ebb1f84ed43cc2d654d2bc326264", | ||
| "pnpm": { | ||
| "overrides": { | ||
| "@hono/node-server": "1.19.10", | ||
| "ajv": "8.18.0", | ||
| "axios": "1.13.5", | ||
| "fast-xml-parser": "5.3.6", | ||
| "hono": "4.11.10", | ||
| "fast-xml-parser": "5.3.8", | ||
| "hono": "4.12.4", | ||
| "jws": ">=3.2.3 <4.0.0 || >=4.0.1", | ||
| "lodash": "4.17.23", | ||
| "minimatch": "10.2.1", | ||
| "qs": "6.14.2" | ||
| "minimatch": "10.2.3", | ||
| "multer": "2.1.1", | ||
| "qs": "6.14.2", | ||
| "serialize-javascript": "7.0.3" | ||
| }, | ||
| "patchedDependencies": { | ||
| "@eslint/[email protected]": "patches/@[email protected]", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[⚠️
security]Using
COPY --chown=node:node . .is a good practice for setting file ownership, but ensure that all necessary files and directories are accessible to thenodeuser. Verify that there are no permission issues during runtime.