2022-01-30 22:02:21 +01:00
|
|
|
FROM maven:3-jdk-11 as build
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
2022-01-31 19:28:14 +01:00
|
|
|
RUN git clone https://github.com/OpenRefine/OpenRefine
|
2022-01-30 22:02:21 +01:00
|
|
|
WORKDIR /usr/src/app/OpenRefine
|
|
|
|
|
2022-01-31 19:28:14 +01:00
|
|
|
COPY muor-openrefine.patch .
|
|
|
|
RUN git apply muor-openrefine.patch
|
|
|
|
|
2022-01-30 22:02:21 +01:00
|
|
|
RUN ./refine clean
|
|
|
|
RUN ./refine build
|
|
|
|
|
|
|
|
FROM openjdk:11
|
|
|
|
|
|
|
|
WORKDIR /usr/app
|
|
|
|
COPY --from=build /usr/src/app/OpenRefine .
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
EXPOSE 3333
|
|
|
|
|
2022-01-31 19:28:14 +01:00
|
|
|
ENTRYPOINT ["/usr/app/refine", "-i", "0.0.0.0", "-d", "/data", "-m", "3G"]
|