-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HARMONY-1618: Speed up building all images when only a code change is…
… being made.
- Loading branch information
1 parent
71f4fbd
commit 0411827
Showing
14 changed files
with
63 additions
and
30 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
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 |
---|---|---|
@@ -1,16 +1,24 @@ | ||
ARG BASE_IMAGE=node:18-buster | ||
FROM $BASE_IMAGE | ||
|
||
RUN apt update && apt-get -y install sqlite3 python3 python3-pip python3-setuptools | ||
RUN pip3 install --upgrade pip awscli awscli-local | ||
# Need to downgrade boto3 because there is a bug breaking creating SQS queues | ||
RUN pip3 install boto3==1.25.5 | ||
RUN mkdir -p /harmony/services/harmony | ||
COPY built /harmony | ||
RUN chown node -R /harmony | ||
USER node | ||
|
||
RUN mkdir -p /harmony/services/harmony /harmony/packages/util | ||
RUN chown -R node:node /harmony | ||
|
||
COPY --chown=node:node built/packages/util/package.json built/packages/util/package-lock.json /harmony/packages/util/ | ||
WORKDIR /harmony/packages/util | ||
RUN env NODE_ENV=production npm ci | ||
|
||
COPY --chown=node:node built/services/harmony/package.json built/services/harmony/package-lock.json /harmony/services/harmony/ | ||
WORKDIR /harmony/services/harmony | ||
RUN env NODE_ENV=production npm ci | ||
RUN npm install sqlite3 --save | ||
ENTRYPOINT [ "npm", "run", "start" ] | ||
RUN npm install sqlite3 | ||
|
||
COPY --chown=node:node built /harmony | ||
|
||
USER node | ||
|
||
ENTRYPOINT [ "npm", "run", "start" ] |
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
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