From 7d5c079a8b7641a93805dc6146ca405ad9ff9b15 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 10 Jul 2021 23:22:17 -0300 Subject: [PATCH] Fix wrong COPY on Dockerfile; force using buildkit --- Dockerfile | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index eecfd43..a7a8001 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM node:12.22.3-alpine AS builder WORKDIR /otterscan-build -COPY ["package.json", "package-lock.json", "/otterscan-build"] +COPY ["package.json", "package-lock.json", "/otterscan-build/"] RUN npm install -COPY ["run-nginx.sh", "tsconfig.json", "craco.config.js", "tailwind.config.js", "/otterscan-build"] -COPY ["public", "/otterscan-build/public"] -COPY ["src", "/otterscan-build/src"] +COPY ["run-nginx.sh", "tsconfig.json", "craco.config.js", "tailwind.config.js", "/otterscan-build/"] +COPY ["public", "/otterscan-build/public/"] +COPY ["src", "/otterscan-build/src/"] RUN npm run build FROM nginx:1.21.1-alpine diff --git a/package.json b/package.json index 669bde3..d76b66f 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "eject": "react-scripts eject", "start-assets": "docker run --rm -p 3001:80 --name otterscan-assets -d -v$(pwd)/4bytes/signatures:/usr/share/nginx/html/signatures/ -v$(pwd)/trustwallet/blockchains/ethereum/assets:/usr/share/nginx/html/assets -v$(pwd)/nginx.conf:/etc/nginx/conf.d/default.conf nginx:1.21.1-alpine", "stop-assets": "docker stop otterscan-assets", - "build-docker": "docker build -t otterscan -f Dockerfile .", + "build-docker": "DOCKER_BUILDKIT=1 docker build -t otterscan -f Dockerfile .", "start-docker": "docker run --rm -p 5000:80 --name otterscan -d otterscan", "stop-docker": "docker stop otterscan" },