add: docker

This commit is contained in:
2025-09-11 14:23:07 +02:00
parent ca02562a96
commit 078701117d

16
docker-compose.yaml Normal file
View File

@@ -0,0 +1,16 @@
# A docker file to test the project independently of your machine
# Walkthrough :
# run the "docker compose up -d command"
# Wait for the machine to start and apt to install the dependancies
# run "docker exec -it ft_ping bash" to get a shell in the container
# The project is located at /ft_ping on the machine
services:
vm:
container_name: ft_ping
image: debian:bullseye
tty: true
stdin_open: true
volumes:
- ./:/ft_ping
command:
bash -c "apt update && apt install make inetutils-ping clang -y && bash"