Skip to content

Commit

Permalink
Fixing Dockerfile definition. (#272)
Browse files Browse the repository at this point in the history
* Fixing deploy

* Removing unwanted line

* Adding python

* Update Dockerfile

Python order.

Co-authored-by: Tomasz Drwięga <[email protected]>

* Adding prebuild

* Removing script on Dockerfile

* Addressing PR feedback

* Removing extra line

Co-authored-by: Tomasz Drwięga <[email protected]>
  • Loading branch information
hbulgarini and tomusdrw authored Sep 1, 2021
1 parent 5167c48 commit 34add4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 34add4c

Please sign in to comment.