blob: e95c09b19318fc7d125d18bad0ac26b6ae09d48e [file] [log] [blame]
# Build James
#
# VERSION 1.0
FROM adoptopenjdk:11-jdk-hotspot
ENV GIT_VERSION 1:2.11.0-3
# Install git
RUN apt-get update
RUN apt-get install -y git wget unzip
# Install Maven
WORKDIR /root
RUN wget https://archive.apache.org/dist/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz
RUN tar -xvf apache-maven-3.6.2-bin.tar.gz
RUN ln -s /root/apache-maven-3.6.2/bin/mvn /usr/bin/mvn
# Copy the script
COPY compile.sh /root/compile.sh
COPY integration_tests.sh /root/integration_tests.sh
COPY .testcontainers.properties /root/.testcontainers.properties
# Define the entrypoint
WORKDIR /james-project
ENTRYPOINT ["/root/compile.sh"]