Compare commits

...

2 Commits

Author SHA1 Message Date
Paul Warren e9f2922d7f Docker build script 2022-08-11 01:29:19 +00:00
Paul Warren fb295ac8f2 Update to Debian 11 2022-08-11 01:28:58 +00:00
4 changed files with 15 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM debian:10
FROM debian:11
MAINTAINER Paul Warren <pwarren@pwarren.id.au>

View File

@ -10,6 +10,8 @@ usage = """
Post image Data to /desteg and receive a copy of that image with the least significant bits XORed with system entropy
Example: curl -H "Content-Type: application/png" --data-binary @image.png http://localhost:5002/desteg -o image_destegged.png
Updated 2022-08-11
"""
@app.route("/desteg", methods=["GET"])

9
docker_build Normal file
View File

@ -0,0 +1,9 @@
VERSION=$(git log -1 --pretty=%h)
REPO="dockerhub.kube:5000/desteg:
TAG="$REPO$VERSION"
LATEST="${REPO}latest"
TS=$( date '+%F_%H:%M:%S; )\\
docker build -t "$TAG" -t "$LATEST" --build-arg VERSION="$VERSION" --build-arg BUILD_TIMESTAMP="$BUILD_TIMESTAMP" .
docker push "$TAG"
docker push "$LATEST"

View File

@ -1,4 +1,4 @@
numpy==1.16.2
numpy>=1.16.2
Flask>=2.0.3
Pillow==6.2.0
gunicorn==20.0.4
Pillow>=6.2.0
gunicorn>=20.0.4