Change dockerfile to use local version as opposed to cloning polkadot… (#2225)

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

* Update Dockerfile

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
This commit is contained in:
philipstanislaus 2020-02-03 15:02:03 +01:00 committed by GitHub
parent 40d47a82a1
commit ec4d7add0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
@ -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