From 7b3bf37108265415b95f57e9a49af2d6882ff911 Mon Sep 17 00:00:00 2001 From: rainyy21 Date: Tue, 10 Nov 2026 12:32:08 -0500 Subject: [PATCH] fix up some typo on the docker file and add enviroment --- Dockerfile | 10 ++++------ docker-compose.yml | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index db01327..5924890 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,15 @@ -FROM python:3.12-alpha +FROM python:3.12-alpine RUN apk add --no-cache git docker-cli docker-cli-compose && git config --global --add safe.directory '*' WORKDIR /app -COPY requirements.txt .. +COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -COPY app/watcher.py .. +COPY app/watcher.py . -ENV PYTHONUMBUFFERED = 1 +ENV PYTHONUNBUFFERED=1 CMD ["python", "/app/watcher.py"] - - diff --git a/docker-compose.yml b/docker-compose.yml index 97a5b35..9d9d6d7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,12 +3,12 @@ services: build: . container_name: gitops-watcher restart: unless-stopped + env_file: .env environment: CHECK_INTERVAL: 30 STACKS_DIR: /opt/gitops CONFIG_PATH: /config/repos.yml - env_file: .env volumes: - /var/run/docker.sock:/var/run/docker.sock - - ./repos.yml:config/repos.yml:ro + - ./repos.yml:/config/repos.yml:ro - /opt/gitops:/opt/gitops