瀏覽代碼

Dockerfile: only create versionless link when needed

Markus Neteler 3 年之前
父節點
當前提交
0e0d05ea53
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -112,7 +112,7 @@ RUN ./configure \
     && make -j $NUMTHREADS && make install && ldconfig
 
 # enable simple grass command regardless of version number
-RUN ln -s /usr/local/bin/grass* /usr/local/bin/grass
+RUN if [ ! -e /usr/local/bin/grass ] ; then ln -s /usr/local/bin/grass* /usr/local/bin/grass ; fi
 
 # Reduce the image size
 RUN apt-get autoremove -y