From 5f249c8387a31779bb92a7560b400fde8574bbb0 Mon Sep 17 00:00:00 2001 From: Jarek Krochmalski Date: Wed, 25 Jun 2025 17:14:11 +0200 Subject: [PATCH 1/2] dockefile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f0d24f0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Use an official Python runtime as a parent image +FROM python:3.11-slim + +# Set environment variables to avoid interactive prompts +ENV DEBIAN_FRONTEND=noninteractive + +# Install git and other dependencies +RUN apt-get update && \ + apt-get install -y git && \ + rm -rf /var/lib/apt/lists/* + +# Clone the repository +RUN git clone https://github.com/Xoconoch/spotizerr-auth.git + +# Set the working directory +WORKDIR /spotizerr-auth + +# Install Python dependencies +RUN pip install --no-cache-dir -r requirements.txt + +# Set the default command to run the application +CMD ["python", "spotizerr-auth.py"] From 07e0d341876ef9831aca5faed26f286aea4e9828 Mon Sep 17 00:00:00 2001 From: Jarek Krochmalski Date: Wed, 25 Jun 2025 17:19:28 +0200 Subject: [PATCH 2/2] dockerfile & readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 06d383d..4d2e604 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,18 @@ Run the script from your terminal: python spotizerr-auth.py ``` +## running with docker + +Build the Docker image using the provided Dockerfile and the command below: +```bash +docker build . -t spotizerr-auth +``` + +Then, run the Docker container with the following command: +``` +docker run --rm -it spotizerr-auth +``` + The script will guide you through the following steps: 1. **Enter Spotizerr URL**: You'll be prompted for the base URL of your Spotizerr instance. You can press Enter to use the default (`http://localhost:7171`).