|
|
@ -7,8 +7,7 @@ FROM openjdk:alpine
|
|
|
|
RUN java -version
|
|
|
|
RUN java -version
|
|
|
|
|
|
|
|
|
|
|
|
# Install needed packages not in base image
|
|
|
|
# Install needed packages not in base image
|
|
|
|
RUN apk update && \
|
|
|
|
RUN apk add --no-cache curl
|
|
|
|
apk add --no-cache curl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# set current working dir
|
|
|
|
# set current working dir
|
|
|
|
WORKDIR /tmp
|
|
|
|
WORKDIR /tmp
|
|
|
@ -55,8 +54,7 @@ WORKDIR /opt
|
|
|
|
# Possible alternative : copy directly your current sources an remove git clone command from the following RUN
|
|
|
|
# Possible alternative : copy directly your current sources an remove git clone command from the following RUN
|
|
|
|
# COPY . /opt/yacy_search_server/
|
|
|
|
# COPY . /opt/yacy_search_server/
|
|
|
|
|
|
|
|
|
|
|
|
RUN apk update && \
|
|
|
|
RUN apk add --no-cache git && \
|
|
|
|
apk add --no-cache git && \
|
|
|
|
|
|
|
|
git clone https://github.com/yacy/yacy_search_server.git && \
|
|
|
|
git clone https://github.com/yacy/yacy_search_server.git && \
|
|
|
|
ant compile -f /opt/yacy_search_server/build.xml && \
|
|
|
|
ant compile -f /opt/yacy_search_server/build.xml && \
|
|
|
|
rm -rf /opt/yacy_search_server/.git && \
|
|
|
|
rm -rf /opt/yacy_search_server/.git && \
|
|
|
|