2020-08-08 12:46:23 +02:00
FROM alpine:3.11
2019-07-29 22:13:47 +02:00
LABEL maintainer = "felixlohmeier@opencultureconsulting.com"
2019-08-03 13:23:10 +02:00
# 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.
2019-07-29 20:41:32 +02:00
# Source: https://github.com/opencultureconsulting/openrefine-client
2017-02-01 18:23:06 +01:00
2019-08-03 13:23:32 +02:00
# Install python and pip
# ... and curl for https://github.com/opencultureconsulting/openrefine-batch
2017-02-01 18:23:06 +01:00
RUN apk add --no-cache \
python \
2019-07-29 23:12:09 +02:00
py-pip \
2019-08-03 13:23:32 +02:00
curl
2017-02-01 18:23:06 +01:00
2017-11-17 16:46:37 +01:00
# Install dependency urllib2_file
RUN pip install urllib2_file = = 0.2.1
2019-08-04 02:15:26 +02:00
# Copy python scripts
2017-02-01 18:23:06 +01:00
WORKDIR /app
2019-08-03 13:23:32 +02:00
COPY google google
COPY refine.py .
2017-02-01 18:23:06 +01:00
2017-11-19 23:27:40 +01:00
# Change docker WORKDIR (shall be mounted by user)
2017-02-01 18:23:06 +01:00
WORKDIR /data
2019-08-03 13:23:32 +02:00
# Execute refine.py
ENTRYPOINT [ "/app/refine.py" ]
2017-02-01 18:23:06 +01:00
# Default command: print help
CMD [ "-h" ]