Skip to content

Commit

Permalink
Change dockerfile to use local version as opposed to cloning polkadot… (
Browse files Browse the repository at this point in the history
polkadot-js#2225)

* Change dockerfile to use local version as opposed to cloning polkadot-js/apps

* Update Dockerfile

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
  • Loading branch information
2 people authored and KarishmaBothara committed Feb 20, 2020
1 parent 53e1c6c commit 53df8ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ RUN apt-get update && apt-get install -y curl git gnupg
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs

WORKDIR /app
RUN git clone https://github.com/polkadot-js/apps
WORKDIR /apps
COPY . .

WORKDIR /app/apps
RUN npm install yarn -g
RUN yarn
RUN NODE_ENV=production yarn build
Expand All @@ -19,7 +18,7 @@ FROM ubuntu:18.04

RUN apt-get update && apt-get -y install nginx

COPY --from=builder /app/apps/packages/apps/build /var/www/html
COPY --from=builder /apps/packages/apps/build /var/www/html

EXPOSE 80

Expand Down

0 comments on commit 53df8ba

Please sign in to comment.