git @ Cat's Eye Technologies kinoje / develop-0.6
Docker build now uses /mnt/host and PATH for nicer usage. Chris Pressey 3 years ago
2 changed file(s) with 9 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
00 FROM python:3.5.7-slim-stretch
1 RUN apt-get update && apt-get install -y povray povray-includes ffmpeg imagemagick librsvg2-bin
1 RUN apt-get update && apt-get upgrade -y
2 RUN apt-get install -y povray povray-includes ffmpeg imagemagick librsvg2-bin
3 RUN mkdir /mnt/host
24 WORKDIR /usr/src/app
35 COPY requirements.txt ./
46 RUN pip install --no-cache-dir -r requirements.txt
57 COPY bin ./bin
68 COPY src ./src
9 ENV PATH="/usr/src/app/bin:${PATH}"
10 WORKDIR /mnt/host
11
22 # After building the image, you can run kinoje from within it like:
33 #
4 # docker run --user $(id -u):$(id -g) -i -t -v "${PWD}:/usr/src/app/host" kinoje \
5 # bin/kinoje host/eg/moebius.yaml -o host/moebius.mp4
4 # docker run --user $(id -u):$(id -g) -i -t -v "${PWD}:/mnt/host" kinoje \
5 # kinoje eg/moebius.yaml -o moebius.mp4
66 #
77
88 rm -rf src/kinoje/*.pyc src/kinoje/__pycache__
99 docker container prune
10 docker rmi catseye/kinoje:0.5
10 docker rmi catseye/kinoje:0.6
1111 docker rmi kinoje
1212 docker build -t kinoje .
13 docker tag kinoje catseye/kinoje:0.5
13 docker tag kinoje catseye/kinoje:0.6