mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
Use latest official Docker java image as a basis.
This image is a debian Jessie with an openjdk-8 from debian backports. This avoid downloading openjdk dependencies through apt-get each time YaCy docker image is built.
This commit is contained in:
parent
9ca2b140d8
commit
e180170152
|
@ -1,17 +1,18 @@
|
|||
# Build a docker image from latest YaCy sources
|
||||
|
||||
# Base image : latest stable Debian
|
||||
FROM debian:latest
|
||||
# Base image : latest stable official jdk container from Docker (Debian based)
|
||||
FROM java:latest
|
||||
|
||||
# Install needed packages
|
||||
RUN apt-get update && apt-get install -yq \
|
||||
default-jdk \
|
||||
default-jre-headless \
|
||||
ant \
|
||||
git \
|
||||
curl \
|
||||
sudo
|
||||
|
||||
# trace java version
|
||||
RUN java -version
|
||||
|
||||
# set current working dir
|
||||
WORKDIR /opt
|
||||
|
||||
|
@ -39,7 +40,6 @@ RUN chown yacy:yacy -R /opt/yacy_search_server
|
|||
# make some cleaning to reduce image size
|
||||
RUN rm -rf .git \
|
||||
&& apt-get purge -yq --auto-remove \
|
||||
default-jdk \
|
||||
ant \
|
||||
git \
|
||||
&& apt-get clean
|
||||
|
|
Loading…
Reference in New Issue
Block a user