-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
33 lines (24 loc) · 882 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ARG BUILD_IMAGE=openjdk:8u322-jdk
# Build image
FROM ${BUILD_IMAGE}
LABEL maintainer="ome-devel@lists.openmicroscopy.org.uk"
USER root
RUN apt-get -q update && apt-get -qy install maven \
ant \
git \
python3-venv
RUN id 1000 || useradd -u 1000 -ms /bin/bash build
COPY --chown=1000:1000 . /bio-formats-build
USER 1000
WORKDIR /bio-formats-build
RUN git submodule update --init
RUN python3 -m venv /bio-formats-build/venv
ENV PATH="/bio-formats-build/venv/bin:$PATH"
RUN pip install -r bio-formats-documentation/requirements.txt
RUN pip install -r ome-model/requirements.txt
RUN mvn clean install -DskipSphinxTests
WORKDIR /bio-formats-build/bioformats
RUN ant jars tools
ENV TZ "Europe/London"
WORKDIR /bio-formats-build/bioformats/components/test-suite
ENTRYPOINT ["/usr/bin/ant", "test-automated", "-Dtestng.directory=/data", "-Dtestng.configDirectory=/config"]