blob: ad36fd16476bda86bbc83d254352ba8b23ff6e67 [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://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
RUN tar -xvf apache-maven-3.6.3-bin.tar.gz
RUN ln -s /root/apache-maven-3.6.3/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"]