Bundle faucet
This commit is contained in:
@@ -13,16 +13,15 @@ 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 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 apk add --update --no-cache alpine-sdk linux-headers build-base gcc libusb-dev python3 py3-pip eudev-dev
|
||||
RUN ln -sf python3 /usr/bin/python
|
||||
|
||||
RUN yarn install && yarn run build
|
||||
RUN (cd packages/faucet && SKIP_BUILD=1 yarn pack-node)
|
||||
|
||||
FROM node:14-alpine
|
||||
COPY --from=build-env /app /app
|
||||
COPY --from=build-env /app/packages/faucet /app/packages/faucet
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 8000
|
||||
ENTRYPOINT ["yarn", "node", "/app/packages/faucet/bin/cosmos-faucet"]
|
||||
ENTRYPOINT ["/app/packages/faucet/bin/cosmos-faucet-dist"]
|
||||
|
||||
Reference in New Issue
Block a user