فهرست منبع

Dockerfile: only create versionless link when needed

Markus Neteler 4 سال پیش
والد
کامیت
0b15327a7c
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