Easily deployable Docker Dev-Container for C development.
Requirements:
- Docker
- Build Container:
make builder-build
- Run Container (access terminal inside container):
make builder-run
- Build Container:
docker build -f builder.Dockerfile -t <PROJECT-NAME>-builder:latest .
- Run Container (access terminal inside container):
docker run \
--rm \
-it \
--platform linux/amd64 \
--workdir /builder/mnt \
-v .:/builder/mnt \
<PROJECT-NAME>-builder:latest \
/bin/bash
Make sure the Dev Container
extension is installed.
link: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
Now open command pallete and choose Dev Containers: Reopen in container
Compile:
make compile
Run:
make run