2017-02-02 02:09:25 +01:00
|
|
|
FROM ubuntu:trusty
|
2017-03-14 22:36:19 +01:00
|
|
|
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
|
|
|
|
# OpenRefine Development Version
|
2017-02-02 02:09:25 +01:00
|
|
|
|
2017-03-14 22:36:19 +01:00
|
|
|
# Install JDK after system updates
|
2017-02-02 02:09:25 +01:00
|
|
|
RUN apt-get update && apt-get install -y wget ant unzip openjdk-7-jdk && apt-get clean
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2017-03-14 22:36:19 +01:00
|
|
|
# Build OpenRefine
|
2017-02-02 02:09:25 +01:00
|
|
|
RUN wget --no-check-certificate https://github.com/OpenRefine/OpenRefine/archive/master.zip
|
|
|
|
RUN unzip master.zip && rm master.zip
|
|
|
|
RUN OpenRefine-master/refine build
|
|
|
|
|
2017-03-14 22:36:19 +01:00
|
|
|
# Remove JDK and install JRE
|
2017-02-02 02:09:25 +01:00
|
|
|
RUN apt-get remove -y openjdk-7-jdk
|
|
|
|
RUN apt-get install openjdk-7-jre-headless
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
WORKDIR /data
|
|
|
|
|
|
|
|
EXPOSE 3333
|
|
|
|
|
|
|
|
ENTRYPOINT ["/app/OpenRefine-master/refine"]
|
|
|
|
CMD ["-i", "0.0.0.0", "-d", "/data"]
|