yangc 7 anni fa
parent
commit
02d646da58
1 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. 7 3
      Dockerfile

+ 7 - 3
Dockerfile

@@ -1,4 +1,5 @@
-FROM 10.10.100.200:5000/node-webpack:0.0.1
+#FROM 10.10.100.200:5000/node-webpack:0.0.1
+FROM 10.10.100.200:5000/node-yarn:8.10-alpine
 
 RUN mkdir -p /app
 WORKDIR /app
@@ -7,7 +8,10 @@ COPY . /app
 
 RUN chmod +x run.sh
 
-RUN cnpm install
-RUN npm run build
+RUN npm install -g node-gyp
+RUN yarn
+
+#RUN cnpm install
+#RUN npm run build
 
 CMD [ "/app/run.sh" ]