diff --git a/Dockerfile b/Dockerfile index 56377962..f6c8ec37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,12 @@ FROM node:14.17-alpine AS builder WORKDIR /parity-bridges-ui RUN apk update -RUN apk add git +# Install git & python/pip +RUN apk add git python3 +RUN ln -sf python3 /usr/bin/python +ENV PYTHONUNBUFFERED=1 +RUN python3 -m ensurepip +RUN pip3 install --no-cache --upgrade pip setuptools # install app dependencies COPY package.json . diff --git a/package.json b/package.json index d5cbe4ed..3c32c4a0 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "scripts": { "prestart": "yarn downloadCustomTypes", "start": "PORT=3001 react-app-rewired start", + "prebuild": "yarn downloadCustomTypes", "build": "react-app-rewired build", "test:e2e": "jest -c e2e/jest.config.js", "test:e2e-s": "serve -s build -l 4000 & jest -c e2e/jest.config.js",