mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Improve Dockerfile
This commit is contained in:
parent
43bd0f5797
commit
899b894823
@ -1,17 +1,21 @@
|
||||
# Confio hosts a faucet build at https://hub.docker.com/r/confio/faucet
|
||||
#
|
||||
# Build:
|
||||
# docker build -t confio/faucet:manual -f packages/faucet/Dockerfile .
|
||||
# docker build --pull -t confio/faucet:manual -f packages/faucet/Dockerfile .
|
||||
# Run:
|
||||
# docker run --rm confio/faucet:manual version
|
||||
#
|
||||
# During the build step the working directory must be the repo root such that the
|
||||
# app has access to all installed dependencies.
|
||||
|
||||
FROM node:14-alpine as build-env
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --update --no-cache alpine-sdk linux-headers build-base gcc libusb-dev python3 eudev-dev && ln -sf python3 /usr/bin/python
|
||||
RUN python3 -m ensurepip
|
||||
RUN apk add --update --no-cache alpine-sdk linux-headers build-base gcc libusb-dev python3 py3-pip eudev-dev \
|
||||
&& ln -sf python3 /usr/bin/python
|
||||
# Do we really need to update those?
|
||||
RUN pip3 install --no-cache --upgrade pip setuptools
|
||||
|
||||
RUN yarn install && yarn run build
|
||||
|
Loading…
x
Reference in New Issue
Block a user