-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimise and revamp microservice Docker builds to leverage cache, min…
…imise disk size etc.
- Loading branch information
Showing
54 changed files
with
925 additions
and
820 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
**/*.log | ||
.secrets/* | ||
data | ||
grafana | ||
grafana |
This file contains 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 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 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 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 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 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 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,18 @@ | ||
FROM node:18-slim | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
|
||
RUN apt-get clean && \ | ||
rm -rf /var/cache/apt/archives /var/lib/apt/lists/* | ||
|
||
USER node | ||
|
||
WORKDIR /app | ||
|
||
COPY --chown=node:node *.json . | ||
COPY --chown=node:node yarn.lock . | ||
|
||
RUN yarn install --production --frozen-lockfile | ||
|
||
COPY --chown=node:node packages/commons /app/packages/commons | ||
RUN cd packages/commons && yarn install --frozen-lockfile && yarn build |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.