mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Merge pull request #1121 from cosmos/alpine-minimal-faucet
Use alpine image and install Node.js to reduce image size
This commit is contained in:
commit
e2f1263917
@ -10,7 +10,14 @@ and this project adheres to
|
|||||||
|
|
||||||
- @cosmjs/math: Add `Decimal.zero` and `Decimal.one` ([#1110]).
|
- @cosmjs/math: Add `Decimal.zero` and `Decimal.one` ([#1110]).
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- @cosmjs/faucet: Docker build image is 90 % smaller now (from 500 MB to 50 MB)
|
||||||
|
due to build system optimizations ([#1120], [#1121]).
|
||||||
|
|
||||||
[#1110]: https://github.com/cosmos/cosmjs/issues/1110
|
[#1110]: https://github.com/cosmos/cosmjs/issues/1110
|
||||||
|
[#1120]: https://github.com/cosmos/cosmjs/pull/1120
|
||||||
|
[#1121]: https://github.com/cosmos/cosmjs/pull/1121
|
||||||
|
|
||||||
## [0.28.3] - 2022-04-11
|
## [0.28.3] - 2022-04-11
|
||||||
|
|
||||||
|
@ -19,7 +19,12 @@ RUN ln -sf python3 /usr/bin/python
|
|||||||
RUN yarn install && yarn run build
|
RUN yarn install && yarn run build
|
||||||
RUN (cd packages/faucet && SKIP_BUILD=1 yarn pack-node)
|
RUN (cd packages/faucet && SKIP_BUILD=1 yarn pack-node)
|
||||||
|
|
||||||
FROM node:14-alpine
|
# Use Alpine and install Node.js which is 50% smaller than the -alpine version of the node
|
||||||
|
# image (53 MB including the faucet app).
|
||||||
|
FROM alpine:3.15
|
||||||
|
# Installs Node.js 16 (https://pkgs.alpinelinux.org/packages?name=nodejs&branch=v3.15)
|
||||||
|
RUN apk add --update nodejs
|
||||||
|
|
||||||
COPY --from=build-env /app/packages/faucet /app/packages/faucet
|
COPY --from=build-env /app/packages/faucet /app/packages/faucet
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user