Experimental Dockerfile and build script.
Chris Pressey
6 years ago
|
0 |
FROM python:3.5.7-slim-stretch
|
|
1 |
RUN apt-get update && apt-get upgrade -y
|
|
2 |
RUN mkdir /mnt/host
|
|
3 |
WORKDIR /usr/src/app
|
|
4 |
COPY bin ./bin
|
|
5 |
COPY src ./src
|
|
6 |
ENV PATH="/usr/src/app/bin:${PATH}"
|
|
7 |
WORKDIR /mnt/host
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
# After building the image, you can run sixtypical from within it like:
|
|
3 |
#
|
|
4 |
# docker run --user $(id -u):$(id -g) -i -t -v "${PWD}:/mnt/host" sixtypical \
|
|
5 |
# sixtypical eg/funrun.60p
|
|
6 |
#
|
|
7 |
|
|
8 |
PROJECT=sixtypical
|
|
9 |
VERSION=0.19
|
|
10 |
|
|
11 |
rm -rf src/sixtypical/*.pyc src/sixtypical/__pycache__
|
|
12 |
docker container prune
|
|
13 |
docker rmi catseye/${PROJECT}:${VERSION}
|
|
14 |
docker rmi ${PROJECT}
|
|
15 |
docker build -t ${PROJECT} .
|
|
16 |
docker tag sixtypical catseye/${PROJECT}:${VERSION}
|