Bundle faucet

This commit is contained in:
Simon Warta
2022-04-12 14:36:19 +02:00
parent b8db0b3255
commit 0f138e87ca
4 changed files with 34 additions and 7 deletions
+5 -6
View File
@@ -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"]