fix: mount SSH keys and host repos for git push, install openssh-client
This commit is contained in:
parent
bd5b041149
commit
b625ed237a
2 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends git openssh-client && rm -rf /var/lib/apt/lists/*
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY main.py .
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@ services:
|
|||
volumes:
|
||||
- /opt/src/betterlifesg:/repo/betterlifesg:rw
|
||||
- /opt/src/hk_memoraiz:/repo/memoraiz:rw
|
||||
- /root/.ssh:/root/.ssh:ro
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- TZ=${TZ:-Asia/Singapore}
|
||||
- SITE_DIR=/repo/betterlifesg/site
|
||||
- MEMORAIZ_DIR=/repo/memoraiz/frontend
|
||||
- GIT_SSH_COMMAND=ssh -o StrictHostKeyChecking=no
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue