diff --git a/.github/workflows/dev-ecr-deploy.yml b/.github/workflows/dev-ecr-deploy.yml index 26606253c78c..503b074a716e 100644 --- a/.github/workflows/dev-ecr-deploy.yml +++ b/.github/workflows/dev-ecr-deploy.yml @@ -40,7 +40,6 @@ jobs: ECR_REPOSITORY: optimism/rollup-full-node IMAGE_TAG: latest run: | - cd packages/rollup-full-node docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG diff --git a/packages/rollup-full-node/Dockerfile b/Dockerfile similarity index 66% rename from packages/rollup-full-node/Dockerfile rename to Dockerfile index 844b9d770f58..7374ad345152 100644 --- a/packages/rollup-full-node/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM node:11 WORKDIR /server - COPY . /server +RUN yarn link RUN yarn +WORKDIR /server/packages/rollup-full-node + EXPOSE 8545 CMD [ "yarn", "run", "server:fullnode" ] diff --git a/docker-compose.yml b/docker-compose.yml index 4e4af70c9685..6db71e6ee59a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: - internal - external build: - context: packages/rollup-full-node + context: . dockerfile: Dockerfile ports: - 8545:8545