diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..da32533d50 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM node:16-alpine + +# Install Git +RUN apk update +RUN apk add git + +# Copy files over +WORKDIR /app +COPY contracts ./contracts +COPY dapp ./dapp + +# Build contract files +WORKDIR /app/contracts +RUN yarn install +RUN yarn deploy + +# Build DApp +WORKDIR /app/dapp +RUN yarn install +RUN yarn build + +CMD ["yarn", "start"] diff --git a/heroku.yml b/heroku.yml new file mode 100644 index 0000000000..8eec25b9c9 --- /dev/null +++ b/heroku.yml @@ -0,0 +1,3 @@ +build: + docker: + web: Dockerfile