From 7cb086714dd1d445c3455185ffbdf9d8b459b662 Mon Sep 17 00:00:00 2001 From: luccioman Date: Wed, 11 May 2016 14:51:42 +0200 Subject: [PATCH] Try modifications for automated build on dockerhub --- docker/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 018cbd6f5..aa0b5485b 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,10 +12,13 @@ RUN apt-get clean # copy context : should be a YaCy git repository (remote or locally cloned) # context can also be obtained from extracted sources archive, but version number will be default to 1.83/9000 when building -COPY . /opt/yacy_search_server-master +COPY ./yacy_search_server /opt/yacy_search_server + +# trace content of copied directory +RUN ls /opt/yacy_search_server # set current working dir to extracted sources directory -WORKDIR /opt/yacy_search_server-master +WORKDIR /opt/yacy_search_server # Compile with ant RUN ant clean compile @@ -27,7 +30,7 @@ RUN rm -rf .git EXPOSE 8090 # Set data volume : can be used to persist yacy data and configuration -VOLUME ["/opt/yacy_search_server-master/DATA"] +VOLUME ["/opt/yacy_search_server/DATA"] # Start yacy ind debug mode (-d) to display console logs and to wait for yacy process -CMD sh /opt/yacy_search_server-master/startYACY.sh -d \ No newline at end of file +CMD sh /opt/yacy_search_server/startYACY.sh -d