-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Bugfix-Docker is consuming too much resource (PR for Devlop Branch) #2828
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
palisadoes
merged 25 commits into
PalisadoesFoundation:develop
from
PurnenduMIshra129th:bugfix/dockerEfficiency-develop
Jan 31, 2025
Merged
Changes from 6 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f1895b7
some changs
PurnenduMIshra129th 182b201
updated docker.prod
PurnenduMIshra129th 084eeda
updated Dockerfile.prod and dev
PurnenduMIshra129th 1807342
created single compose file for prod and removed development dockerco…
PurnenduMIshra129th 64e52b2
Merge branch 'main-develop' into bugfix/dockerEfficiency-develop
PurnenduMIshra129th ed3d884
merged branch with upstream
PurnenduMIshra129th 37e57be
again added the docke-compose.dev.yaml , docker-compose.prod.yaml,Doc…
PurnenduMIshra129th 4cbba55
changed package.json, changed start command with minio,commented the …
PurnenduMIshra129th de65d05
changed according to suggestion
PurnenduMIshra129th a307751
changed the jq installation to debian syntax
PurnenduMIshra129th 3211756
changed command of minio start
PurnenduMIshra129th 23963fb
updated script of minio and removed unnecessary imports in 2nd stage …
PurnenduMIshra129th a8dce3d
suggestion from ai
PurnenduMIshra129th c57a82c
Update docker-compose.dev.yaml line 19
PurnenduMIshra129th 0f494f8
Update docker-compose.dev.yaml line 35
PurnenduMIshra129th 26f26d4
Update docker-compose.dev.yaml line55
PurnenduMIshra129th 2d3661c
Update docker-compose.prod.yaml line 16
PurnenduMIshra129th 6773b68
Update docker-compose.prod.yaml
PurnenduMIshra129th 4bfe7fb
Update docker-compose.prod.yaml
PurnenduMIshra129th f1fd16d
Update docker-compose.prod.yaml
PurnenduMIshra129th 28c8374
updated by suggestion
PurnenduMIshra129th fcc9429
updated dockerFiles
PurnenduMIshra129th b64413c
added npm install in prod
PurnenduMIshra129th 05eef35
Merge branch 'develop' of https://github.com/PalisadoesFoundation/tal…
PurnenduMIshra129th c21adcc
modify test expectation for getVolunteerRank.spec.ts componennt
PurnenduMIshra129th 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
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,37 @@ | ||
# Stage 1: Build stage | ||
FROM node:22-alpine AS builder | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Copy only necessary files for dependency installation | ||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Copy the rest of the source files (exclude .dockerignore content) | ||
COPY . . | ||
|
||
# Build the application | ||
RUN npm run build | ||
|
||
# Remove development dependencies to reduce size For now we will keep them commented out .Once we sure which packages are not used in production we can use it.It will reduce the size of the image around 150MB. | ||
# RUN npm prune --production | ||
PurnenduMIshra129th marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# Stage 2: Final stage | ||
FROM node:22-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Copy only the build output, node_modules, and package.json from the builder | ||
COPY --from=builder /usr/src/app/build ./build | ||
COPY --from=builder /usr/src/app/package.json ./package.json | ||
COPY --from=builder /usr/src/app/node_modules ./node_modules | ||
COPY --from=builder /usr/src/app/locales ./locales | ||
COPY --from=builder /usr/src/app/certs ./certs | ||
|
||
# Expose the application port | ||
EXPOSE 4000 | ||
|
||
# Start the application | ||
CMD ["npm", "run", "prod"] |
PurnenduMIshra129th marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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.