diff options
Diffstat (limited to 'docker/Dockerfile.alpine')
| -rw-r--r-- | docker/Dockerfile.alpine | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index 720141774..eb3882eb5 100644 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -16,7 +16,10 @@ RUN apk add --no-cache curl git apache-ant # set current working dir & copy sources WORKDIR /opt COPY . /opt/yacy_search_server/ -RUN ant compile -f /opt/yacy_search_server/build.xml +# .git dir deleted here because .git is needed during the build to deterime the version, +# but isn't required at runtime +RUN ant compile -f /opt/yacy_search_server/build.xml \ + && rm -fr /opt/yacy_search_server/.git # Set initial admin password: "yacy" (encoded with custom yacy md5 function net.yacy.cora.order.Digest.encodeMD5Hex()) RUN sed -i "/adminAccountBase64MD5=/c\adminAccountBase64MD5=MD5:8cffbc0d66567a0987a4aba1ec46d63c" /opt/yacy_search_server/defaults/yacy.init && \ |
