fix up some typo on the docker file and add enviroment
This commit is contained in:
+4
-6
@@ -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 '*'
|
RUN apk add --no-cache git docker-cli docker-cli-compose && git config --global --add safe.directory '*'
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt ..
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -r 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"]
|
CMD ["python", "/app/watcher.py"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -3,12 +3,12 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
container_name: gitops-watcher
|
container_name: gitops-watcher
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
CHECK_INTERVAL: 30
|
CHECK_INTERVAL: 30
|
||||||
STACKS_DIR: /opt/gitops
|
STACKS_DIR: /opt/gitops
|
||||||
CONFIG_PATH: /config/repos.yml
|
CONFIG_PATH: /config/repos.yml
|
||||||
env_file: .env
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./repos.yml:config/repos.yml:ro
|
- ./repos.yml:/config/repos.yml:ro
|
||||||
- /opt/gitops:/opt/gitops
|
- /opt/gitops:/opt/gitops
|
||||||
|
|||||||
Reference in New Issue
Block a user