feature/precode #2

Merged
pstruebi merged 8 commits from feature/precode into main 2025-03-04 09:21:54 +00:00
2 changed files with 21 additions and 3 deletions
Showing only changes of commit 174c4bd6b3 - Show all commits

View File

@@ -10,10 +10,12 @@ echo StrictHostKeyChecking no >> /etc/ssh/ssh_config
RUN --mount=type=cache,target=/root/.cache \
--mount=type=ssh,required=true \
pip install .
pip install ./
#CMD [ "python", "./your-daemon-or-script.py" ]
# make sure to install sudo apt install docker-buildx
# make sure to set IdentityFile e.g. /home/pstruebi/.ssh/id_ed25519 in ~/.ssh/config
# build with docker build --ssh default .
# make sure to set IdentityFile /home/pstruebi/.ssh/id_ed25519 in ~/.ssh/config -maybe not nececcary
# example build commands:
# docker build --ssh default .
# docker build --ssh default=~/.ssh/id_rsa .

View File

@@ -0,0 +1,16 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
#ssh: ["default"] # Enable SSH agent forwarding
ssh: ['default','default=~/.ssh/'] #raspi
volumes:
- /dev:/dev # Mount /dev from host to container
environment:
- DOCKER_BUILDKIT=1 # Enable BuildKit (can also be passed during build)
# deploy:
# resources:
# reservations:
# devices:
# - capabilities: [all] # Ensures the container can use /dev as needed