Compare commits
2 Commits
42031650c4
...
e9f2922d7f
Author | SHA1 | Date |
---|---|---|
Paul Warren | e9f2922d7f | |
Paul Warren | fb295ac8f2 |
|
@ -1,4 +1,4 @@
|
||||||
FROM debian:10
|
FROM debian:11
|
||||||
|
|
||||||
MAINTAINER Paul Warren <pwarren@pwarren.id.au>
|
MAINTAINER Paul Warren <pwarren@pwarren.id.au>
|
||||||
|
|
||||||
|
|
|
@ -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
|
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
|
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"])
|
@app.route("/desteg", methods=["GET"])
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
numpy==1.16.2
|
numpy>=1.16.2
|
||||||
Flask>=2.0.3
|
Flask>=2.0.3
|
||||||
Pillow==6.2.0
|
Pillow>=6.2.0
|
||||||
gunicorn==20.0.4
|
gunicorn>=20.0.4
|
||||||
|
|
Loading…
Reference in New Issue