-
Notifications
You must be signed in to change notification settings - Fork 0
Docker hardened images #44
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0ba805d
Docker hardened images
lumburovskalina 9f42b0c
Small fix
lumburovskalina 642fb60
Small fixes
lumburovskalina ac7d141
PR comments
lumburovskalina a288d69
fix: remove drone base image
andhreljaKern a94206e
ci: build fix
andhreljaKern ae9023f
ci: build fix
andhreljaKern a086d63
ci: build fix
andhreljaKern 255419e
ci: build fix
andhreljaKern ba4b71a
test: use parent image
andhreljaKern 8687284
ci: build fix
andhreljaKern 33b0003
ci: build fix
andhreljaKern 386738a
ci: build fix
andhreljaKern File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| .git | ||
| .next | ||
| node_modules | ||
| .env* | ||
| .cursor | ||
| .github | ||
| *.log | ||
| npm-debug.log* | ||
| dev.Dockerfile | ||
| .drone.yml | ||
| README.md | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,39 @@ | ||
| FROM node:18-alpine AS build | ||
| ARG DHI_NODE_BUILD=dhi.io/node:20-debian12-dev | ||
| ARG DHI_NODE_RUNTIME=dhi.io/node:20-debian12 | ||
|
|
||
| FROM ${DHI_NODE_BUILD} AS builder | ||
|
|
||
| WORKDIR /app | ||
| COPY package*.json /app/ | ||
| RUN npm install | ||
| COPY . /app | ||
|
|
||
| COPY package*.json ./ | ||
| ENV NEXT_TELEMETRY_DISABLED=1 | ||
| RUN npm install && npm cache clean --force | ||
|
|
||
|
lumburovskalina marked this conversation as resolved.
|
||
| COPY pages ./pages | ||
| COPY pkg ./pkg | ||
| COPY util ./util | ||
| COPY styles ./styles | ||
| COPY i18n ./i18n | ||
| COPY public ./public | ||
| COPY submodules ./submodules | ||
| COPY next.config.js . | ||
| COPY tsconfig.json . | ||
| COPY postcss.config.js . | ||
| COPY tailwind.config.js . | ||
|
|
||
| RUN npm run build | ||
|
|
||
| ENTRYPOINT ["/usr/local/bin/npm", "run", "start"] | ||
| FROM ${DHI_NODE_RUNTIME} | ||
|
|
||
| WORKDIR /app | ||
|
lumburovskalina marked this conversation as resolved.
|
||
|
|
||
| ENV NODE_ENV=production | ||
| ENV NEXT_TELEMETRY_DISABLED=1 | ||
|
|
||
| COPY --from=builder --chown=1000:1000 /app/.next/standalone ./ | ||
| COPY --from=builder --chown=1000:1000 /app/public ./public | ||
| COPY --from=builder --chown=1000:1000 /app/.next/static ./.next/static | ||
|
|
||
| USER node | ||
|
|
||
| ENTRYPOINT ["node", "server.js"] | ||
|
lumburovskalina marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule javascript-functions
updated
3 files
| +2 −2 | constants.ts | |
| +1 −0 | enums/enum-functions.ts | |
| +23 −0 | enums/enums.ts |
Submodule react-components
updated
10 files
| +54 −13 | components/AutoLogoutProgressBar.tsx | |
| +2 −1 | components/InputWithClearIcon.tsx | |
| +14 −1 | components/KernDropdown.tsx | |
| +4 −1 | components/kern-icons/icons.ts | |
| +428 −4 | components/kern-table/CellComponents.tsx | |
| +144 −53 | components/kern-table/KernTable.tsx | |
| +4 −2 | components/pagination/Pagination.tsx | |
| +3 −2 | helpers/kern-table-helper.ts | |
| +2 −0 | types/dropdown.ts | |
| +4 −1 | types/kern-table.ts |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.