git @ Cat's Eye Technologies yastasoti / develop-0.4
Put bind mount at /mnt/host inside the Docker container, use PATH. Chris Pressey 1 year, 4 months ago
2 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
00 FROM python:3.5.7-slim-stretch
11 RUN apt-get update && apt-get upgrade -y
2 RUN mkdir /mnt/host
23 WORKDIR /usr/src/app
34 COPY requirements.txt ./
45 RUN pip install --no-cache-dir -r requirements.txt
5 COPY script/yastasoti /usr/local/bin/yastasoti
6 COPY script ./script
7 ENV PATH="/usr/src/app/script:${PATH}"
8 WORKDIR /mnt/host
11
22 # After building the image, you can run yastasoti from within it like:
33 #
4 # docker run --user $(id -u):$(id -g) -i -t -v "${PWD}:/usr/src/app/" yastasoti \
5 # yastasoti links.json --archive-to=./
4 # docker run --user $(id -u):$(id -g) -i -t -v "${PWD}:/mnt/host/" yastasoti \
5 # yastasoti links.json --archive-to=out/
66 #
77
88 rm -rf script/*.pyc script/__pycache__