-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce docker image size and fix release GitHub action (#58)
* Reduce docker image size and fix release GitHub action Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io> * Remove unnecessary build dependencies Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
- Loading branch information
Showing
3 changed files
with
4,251 additions
and
225 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
FROM node:14-alpine3.11 as firefly-dataexchange-builder | ||
RUN apk add --update python make | ||
FROM node:16-alpine3.15 as firefly-dataexchange-builder | ||
ADD . /firefly-dataexchange-https | ||
WORKDIR /firefly-dataexchange-https | ||
RUN npm install | ||
RUN npm run build | ||
|
||
FROM node:14-alpine3.11 | ||
FROM node:16-alpine3.15 | ||
WORKDIR /firefly-dataexchange-https | ||
COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/package.json /firefly-dataexchange-https | ||
COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/build /firefly-dataexchange-https/build | ||
COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/node_modules /firefly-dataexchange-https/node_modules | ||
COPY --from=firefly-dataexchange-builder /firefly-dataexchange-https/package*.json ./ | ||
RUN npm install --production | ||
EXPOSE 3000 | ||
EXPOSE 3001 | ||
CMD [ "node", "./build/index.js" ] |
Oops, something went wrong.