Docker build now uses /mnt/host and PATH for nicer usage.
Chris Pressey
3 years ago
0 | 0 |
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
|
2 | 4 |
WORKDIR /usr/src/app
|
3 | 5 |
COPY requirements.txt ./
|
4 | 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
5 | 7 |
COPY bin ./bin
|
6 | 8 |
COPY src ./src
|
|
9 |
ENV PATH="/usr/src/app/bin:${PATH}"
|
|
10 |
WORKDIR /mnt/host
|
1 | 1 |
|
2 | 2 |
# After building the image, you can run kinoje from within it like:
|
3 | 3 |
#
|
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
|
6 | 6 |
#
|
7 | 7 |
|
8 | 8 |
rm -rf src/kinoje/*.pyc src/kinoje/__pycache__
|
9 | 9 |
docker container prune
|
10 | |
docker rmi catseye/kinoje:0.5
|
|
10 |
docker rmi catseye/kinoje:0.6
|
11 | 11 |
docker rmi kinoje
|
12 | 12 |
docker build -t kinoje .
|
13 | |
docker tag kinoje catseye/kinoje:0.5
|
|
13 |
docker tag kinoje catseye/kinoje:0.6
|