forked from leather-io/extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 876 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM debian:buster-slim as builder
LABEL maintainer="[email protected]"
ARG NODE_VERSION=12
ENV MINIFY_PRODUCTION_BUILD=true
ENV EXT_ENV="prod"
ENV NODE_VERSION=${NODE_VERSION}
WORKDIR /src
COPY . .
RUN apt-get update -y \
&& apt-get install -y build-essential python3 zip curl git \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& curl -sL https://deb.nodesource.com/setup_${NODE_VERSION:-12}.x | bash - \
&& sh -c 'echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list' \
&& apt-get update -y \
&& apt-get install -y yarn nodejs \
&& chmod +x build-ext.sh \
&& yarn \
&& yarn build \
&& ./build-ext.sh /stacks-wallet-chromium.zip
FROM alpine:latest
COPY --from=builder /stacks-wallet-chromium.zip .
# Wait for extension.zip to be copied into local
CMD sleep 30