Explorar el Código

docker: fix dockerhub config

陈帅 hace 6 años
padre
commit
324377dbef
Se han modificado 3 ficheros con 5 adiciones y 0 borrados
  1. 2 0
      Dockerfile
  2. 1 0
      Dockerfile.dev
  3. 2 0
      Dockerfile.hub

+ 2 - 0
Dockerfile

@@ -9,4 +9,6 @@ COPY ./ ./
 
 RUN npm run test:all
 
+RUN npm run fetch:blocks
+
 CMD ["npm", "run", "build"]

+ 1 - 0
Dockerfile.dev

@@ -7,5 +7,6 @@ RUN npm install --silent --no-cache --registry=https://registry.npm.taobao.org
 
 COPY ./ ./
 
+RUN npm run fetch:blocks
 
 CMD ["npm", "run", "start"]

+ 2 - 0
Dockerfile.hub

@@ -9,6 +9,8 @@ COPY ./ ./
 
 RUN npm run test:all
 
+RUN npm run fetch:blocks
+
 RUN npm run build