From 34add4c27adf3391a153c7b8ede773c039956e98 Mon Sep 17 00:00:00 2001 From: Hector Bulgarini Date: Wed, 1 Sep 2021 17:06:27 -0300 Subject: [PATCH] Fixing Dockerfile definition. (#272) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixing deploy * Removing unwanted line * Adding python * Update Dockerfile Python order. Co-authored-by: Tomasz Drwięga * Adding prebuild * Removing script on Dockerfile * Addressing PR feedback * Removing extra line Co-authored-by: Tomasz Drwięga --- Dockerfile | 7 ++++++- package.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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",