From 14a98ea38589ce1024a66fc3e0d2d754fc3405cf Mon Sep 17 00:00:00 2001 From: David Schowalter Date: Sun, 26 Jan 2025 21:43:37 +0100 Subject: [PATCH] Updates dependencies --- Dockerfile | 4 ++-- README.md | 4 ++++ build-and-push-docker-image.sh | 7 +++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84ebfeb..4a6cf4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use the builder image to install dependencies and fontconfig -FROM amd64/python:3.12-slim as builder +FROM python:3.12-slim AS builder WORKDIR /app @@ -14,7 +14,7 @@ COPY requirements.txt . RUN pip3 install --no-cache-dir -r requirements.txt # Start the final stage of the build -FROM amd64/python:3.12-slim +FROM python:3.12-slim # Install fontconfig in the final image RUN apt-get update && \ diff --git a/README.md b/README.md index 66b1c60..bfc167d 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,10 @@ pip install -r requirements.txt [http://127.0.0.1:5005/](http://127.0.0.1:5005/) +4. Build and push to docker hub + Run the build-and-ush-docker-image.sh. + + You need to login via docker login -u **** diff --git a/build-and-push-docker-image.sh b/build-and-push-docker-image.sh index 86a2dfb..532c9cf 100755 --- a/build-and-push-docker-image.sh +++ b/build-and-push-docker-image.sh @@ -1,7 +1,10 @@ -VERSION=1.4.1 +VERSION=1.5.1 # Build the Docker image -docker build -t schowave/churchtools:$VERSION . +docker build --platform=linux/amd64 -t schowave/churchtools:$VERSION . + +docker tag schowave/churchtools:$VERSION schowave/churchtools:latest # Push the docker image docker push schowave/churchtools:$VERSION +docker push schowave/churchtools:latest \ No newline at end of file