Modified sources getting

pull/39/head
luccioman 9 years ago
parent 4a8da6fba1
commit 594282d7e8

@ -4,26 +4,26 @@ FROM debian:latest
# Install needed packages # Install needed packages
RUN apt-get update && apt-get install -yq \ RUN apt-get update && apt-get install -yq \
default-jdk \ default-jdk \
ant ant \
git
# Clean apt cache # set current working dir
RUN apt-get clean WORKDIR /opt
# copy context : should be a YaCy git repository (remote or locally cloned) # clone main YaCy git repository (we need to clone git repository to generate correct version when building from source)
# context can also be obtained from extracted sources archive, but version number will be default to 1.83/9000 when building RUN git clone https://github.com/yacy/yacy_search_server.git
COPY ./ /opt/yacy_search_server/
# trace content of copied directory # trace content of source directory
RUN ls -la /opt/yacy_search_server RUN ls -la /opt/yacy_search_server
# set current working dir to extracted sources directory # set current working dir
WORKDIR /opt/yacy_search_server WORKDIR /opt/yacy_search_server
# Compile with ant # Compile with ant
RUN ant compile RUN ant compile
# clean .git directory useless now # make some cleaning to reduce image size
RUN rm -rf .git RUN rm -rf .git && apt-get clean
# Expose port 8090 # Expose port 8090
EXPOSE 8090 EXPOSE 8090

Loading…
Cancel
Save