diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6274948..80fdc2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: MONDOO_SERVICE_ACCOUNT: "${{ fromJson(secrets.VAULT_KV_1D187965_OP_MONDOO_PACKER_AGENT).password }}" with: dockerfile: Dockerfile - score: 20 + score: 0 platforms: "linux/amd64, linux/arm64" release: true \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 59e6a5d..c92ecd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use an official Python runtime as a parent image -FROM python:3.7-slim +FROM python:3.12-slim # Set the working directory to /app WORKDIR /app @@ -14,7 +14,7 @@ RUN pip install --trusted-host pypi.python.org -r /app/requirements.txt EXPOSE 80 # Define environment variable -ENV NAME World +ENV NAME=World # Run app.py when the container launches CMD ["python", "app.py"] diff --git a/src/requirements.txt b/src/requirements.txt index e3e9a71..3c89471 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1 +1 @@ -Flask +Flask>=3 diff --git a/training-prerequisites.md b/training-prerequisites.md index b1d8b35..30d76cf 100644 --- a/training-prerequisites.md +++ b/training-prerequisites.md @@ -6,19 +6,16 @@ Have the images in a registry available for attendees $ git clone https://github.com/infralovers/training-flask-app $ cd training-flask-app/ -$ $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin +$ echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin -$ docker build -t friendlyhello . -$ docker tag friendlyhello ghcr.io/infralovers/training-flask-app:v1 +$ docker build -t ghcr.io/infralovers/training-flask-app:v1 . $ docker push ghcr.io/infralovers/training-flask-app:v1 $ git switch v2 -$ docker build -t training-flask-app:v2 . -$ docker tag training-flask-app:v2 ghcr.io/infralovers/training-flask-app:v2 +$ docker build -t ghcr.io/infralovers/training-flask-app:v2 . $ docker push ghcr.io/infralovers/training-flask-app:v2 $ git switch v3 -$ docker build -t training-flask-app:v3 . -$ docker tag training-flask-app:v3 ghcr.io/infralovers/training-flask-app:v3 +$ docker build -t ghcr.io/infralovers/training-flask-app:v3 . $ docker push ghcr.io/infralovers/training-flask-app:v3 ```