update: docker file to include keys in image
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,67 @@
|
|||||||
|
# Dependencies and build output (reinstalled/rebuilt in the image)
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
build
|
||||||
|
|
||||||
|
# Git and CI
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
|
||||||
|
# Environment and secrets (inject at runtime, not bake into the image)
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
|
||||||
|
# Tests and coverage
|
||||||
|
test
|
||||||
|
coverage
|
||||||
|
.nyc_output
|
||||||
|
*.spec.ts
|
||||||
|
|
||||||
|
# Logs and runtime artifacts
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
.pnpm-debug.log*
|
||||||
|
|
||||||
|
# IDE and editor files
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.c9
|
||||||
|
*.launch
|
||||||
|
.settings
|
||||||
|
*.sublime-workspace
|
||||||
|
|
||||||
|
# OS files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Local tooling not needed for production build
|
||||||
|
.husky
|
||||||
|
eslint.config.mjs
|
||||||
|
commitlint.config.ts
|
||||||
|
.prettierrc
|
||||||
|
.prettierignore
|
||||||
|
.editorconfig
|
||||||
|
|
||||||
|
# Docs and local dev config
|
||||||
|
README.md
|
||||||
|
**/*.md
|
||||||
|
docker-compose.yaml
|
||||||
|
Dockerfile
|
||||||
|
|
||||||
|
# Database migrations/seeders (not required for nest build)
|
||||||
|
database
|
||||||
|
|
||||||
|
# Misc local directories
|
||||||
|
IPGSW1Sale
|
||||||
|
.temp
|
||||||
|
.tmp
|
||||||
|
.cache
|
||||||
|
.parcel-cache
|
||||||
+2
-1
@@ -34,9 +34,10 @@ RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy only production node_modules and build output
|
# Copy only production node_modules, build output, and JWT keys
|
||||||
COPY --from=prod-deps --chown=appuser:appgroup /temp-deps/node_modules ./node_modules
|
COPY --from=prod-deps --chown=appuser:appgroup /temp-deps/node_modules ./node_modules
|
||||||
COPY --from=builder --chown=appuser:appgroup /build/dist ./dist
|
COPY --from=builder --chown=appuser:appgroup /build/dist ./dist
|
||||||
|
COPY --from=builder --chown=appuser:appgroup /build/keys ./keys
|
||||||
COPY --chown=appuser:appgroup package.json ./
|
COPY --chown=appuser:appgroup package.json ./
|
||||||
|
|
||||||
RUN chown -R appuser:appgroup /app
|
RUN chown -R appuser:appgroup /app
|
||||||
|
|||||||
Reference in New Issue
Block a user