26 lines
675 B
Docker
26 lines
675 B
Docker
FROM ubuntu:trusty
|
|
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
|
|
# OpenRefine Development Version
|
|
|
|
# Install JDK after system updates
|
|
RUN apt-get update && apt-get install -y wget ant unzip openjdk-7-jdk && apt-get clean
|
|
|
|
WORKDIR /app
|
|
|
|
# Build OpenRefine
|
|
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
|
|
|
|
# Remove JDK and install JRE
|
|
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"]
|