Browse Source

修改dockerfile,首页轮播图片适配

yangc 7 years ago
parent
commit
b10c70f824
2 changed files with 4 additions and 3 deletions
  1. 3 3
      Dockerfile
  2. 1 0
      components/home/Carousel.vue

+ 3 - 3
Dockerfile

@@ -8,11 +8,11 @@ COPY . /app
 
 RUN chmod +x run.sh
 
-RUN npm install -g node-gyp
+RUN yarn global install node-gyp
 RUN yarn
 
-RUN export SASS_BINARY_PATH=linux_musl-x64-57_binding.node
-RUN export PATH=$PATH:$SASS_BINARY_PATH
+#RUN export SASS_BINARY_PATH=linux_musl-x64-57_binding.node
+#RUN export PATH=$PATH:$SASS_BINARY_PATH
 
 #RUN cnpm install
 #RUN npm run build

+ 1 - 0
components/home/Carousel.vue

@@ -100,6 +100,7 @@
           img {
             display: block;
             height: $carousel_height;
+            width: 100%;
           }
           a[href='']:hover{
             cursor: default;