create docker image with COPY instead of curl

This commit is contained in:
Felix Lohmeier 2019-07-29 20:41:32 +02:00
parent fce77d8d78
commit 221b83e805
1 changed files with 6 additions and 9 deletions

View File

@ -1,29 +1,26 @@
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 command line interface (CLI) and supports communication between docker containers. # 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/opencultureconsulting/openrefine-client
# Install python, pip, unzip, curl and grep # Install python and pip
RUN apk add --no-cache \ RUN apk add --no-cache \
python \ python \
py-pip \ py-pip
unzip \
curl \
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 curl -L -o tmp.zip https://github.com/felixlohmeier/openrefine-client/archive/master.zip COPY google google
RUN unzip tmp.zip && rm tmp.zip COPY refine.py .
# Change docker WORKDIR (shall be mounted by user) # Change docker WORKDIR (shall be mounted by user)
WORKDIR /data WORKDIR /data
# Execute refine.py # Execute refine.py
ENTRYPOINT ["/app/openrefine-client-master/refine.py"] ENTRYPOINT ["/app/refine.py"]
# Default command: print help # Default command: print help
CMD ["-h"] CMD ["-h"]