openrefine-client/docker/Dockerfile

28 lines
905 B
Docker
Raw Normal View History

2017-02-01 18:23:06 +01:00
FROM alpine:latest
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.
# Source: https://github.com/felixlohmeier/openrefine-client
2017-03-14 22:16:36 +01:00
# Install python, wget, unzip, curl and grep
2017-02-01 18:23:06 +01:00
RUN apk add --no-cache \
python \
wget \
2017-03-14 22:21:27 +01:00
unzip \
2017-03-14 22:16:36 +01:00
curl \
2017-03-14 22:23:20 +01:00
grep
2017-02-01 18:23:06 +01:00
2017-02-01 22:23:50 +01:00
# Download and build openrefine-client-master
2017-02-01 18:23:06 +01:00
WORKDIR /app
RUN wget --no-check-certificate https://github.com/felixlohmeier/openrefine-client/archive/master.zip
RUN unzip master.zip && rm master.zip
# Change docker WORKDIR (shall be mounted)
WORKDIR /data
# Execute refine.py
2017-10-27 23:57:59 +02:00
RUN chmod +x /app/openrefine-client-master/refine.py
2017-02-01 22:23:50 +01:00
ENTRYPOINT ["/app/openrefine-client-master/refine.py"]
2017-02-01 18:23:06 +01:00
# Default command: print help
CMD ["-h"]