Commit 5fea8550 authored by foobar's avatar foobar

change Dockerfile to volume mount

parent f3ad6003
......@@ -7,11 +7,13 @@ ENV DEBIAN_FRONTEND noninteractive
RUN pip install --upgrade pip
RUN pip install gensim pattern
RUN mkdir /data
RUN mkdir /data/
ADD data/ /data/
# done via volume mount
#ADD data/ /data/
RUN addgroup --system corpus && adduser --system -u 1000 --ingroup corpus corpus
RUN chown -R corpus /data
ENV PYTHONPATH /usr/local/lib/python2.7/site-packages
......@@ -11,4 +11,4 @@ echo "build docker container"
CONTAINER_HASH=$(docker build -q .)
echo "run this shitshow"
docker run --rm -it --name wikicorpus ${CONTAINER_HASH}
docker run --rm -it -v ./data:/data:ro --name wikicorpus ${CONTAINER_HASH}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment