Explorar o código

修改dockerfile

yangc %!s(int64=7) %!d(string=hai) anos
pai
achega
894b47ffa4
Modificáronse 1 ficheiros con 6 adicións e 10 borrados
  1. 6 10
      Dockerfile

+ 6 - 10
Dockerfile

@@ -1,15 +1,11 @@
-FROM node-python:8.10.0-2.7-alpine
-
+FROM node-python:8.10.0
 RUN mkdir -p /app
 WORKDIR /app
 COPY . /app
-
 RUN chmod +x run.sh
-
-RUN npm install -g node-gyp
-RUN npm install -g yarn
-#RUN npm install -g n
-#RUN n 8.10.0
+#RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
+#RUN cnpm install -g node-gyp
+#RUN cnpm install -g yarn
+RUN yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass -g
 RUN yarn
-
-CMD [ "bash", "/app/run.sh" ]
+CMD [ "bash", "run.sh" ]