diff --git a/docker/Dockerfile b/docker/Dockerfile index 37ec9b1..673349c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,31 +1,29 @@ FROM alpine:latest MAINTAINER felixlohmeier -# The OpenRefine Python Client Library from PaulMakepeace provides an interface to communicating with an OpenRefine server. This fork extends the CLI with some options to create new OpenRefine projects from files. +# The OpenRefine Python Client Library from PaulMakepeace provides an interface to communicating with an OpenRefine server. This fork extends the command line interface (CLI) and supports communication between docker containers. # Source: https://github.com/felixlohmeier/openrefine-client -# Install python, pip, wget, unzip, curl and grep +# Install python, pip, unzip, curl and grep RUN apk add --no-cache \ python \ py-pip \ - wget \ unzip \ curl \ - grep + grep # Install dependency urllib2_file RUN pip install urllib2_file==0.2.1 # Download and build openrefine-client-master WORKDIR /app -RUN wget --no-check-certificate https://github.com/felixlohmeier/openrefine-client/archive/master.zip -RUN unzip master.zip && rm master.zip +RUN curl -L -o tmp.zip https://github.com/felixlohmeier/openrefine-client/archive/master.zip +RUN unzip tmp.zip && rm tmp.zip -# Change docker WORKDIR (shall be mounted) +# Change docker WORKDIR (shall be mounted by user) WORKDIR /data # Execute refine.py -RUN chmod +x /app/openrefine-client-master/refine.py -ENTRYPOINT ["/app/openrefine-client-master/refine.py"] +ENTRYPOINT ["/app/openrefine-client-master/python refine.py"] # Default command: print help CMD ["-h"]