refactored Dockerfile a bit

This commit is contained in:
Felix Lohmeier 2017-11-19 23:27:40 +01:00
parent 947c7510a6
commit 058552aab6
1 changed files with 7 additions and 9 deletions

View File

@ -1,31 +1,29 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com> MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
# 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 # 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 \ RUN apk add --no-cache \
python \ python \
py-pip \ py-pip \
wget \
unzip \ unzip \
curl \ curl \
grep grep
# Install dependency urllib2_file # Install dependency urllib2_file
RUN pip install urllib2_file==0.2.1 RUN pip install urllib2_file==0.2.1
# Download and build openrefine-client-master # Download and build openrefine-client-master
WORKDIR /app WORKDIR /app
RUN wget --no-check-certificate https://github.com/felixlohmeier/openrefine-client/archive/master.zip RUN curl -L -o tmp.zip https://github.com/felixlohmeier/openrefine-client/archive/master.zip
RUN unzip master.zip && rm 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 WORKDIR /data
# Execute refine.py # Execute refine.py
RUN chmod +x /app/openrefine-client-master/refine.py ENTRYPOINT ["/app/openrefine-client-master/python refine.py"]
ENTRYPOINT ["/app/openrefine-client-master/refine.py"]
# Default command: print help # Default command: print help
CMD ["-h"] CMD ["-h"]