AS
Ash258/GCC
Alpine gcc image for Docker
GCC
Alpine gcc image for Docker with Gcc, Make, Valgrind
How to use
-
Dockerfile
FROM ash258/gcc:latest as GCC COPY ./your-project-dir /usr/local/app WORKDIR /usr/local/app #RUN make RUN gcc -o myapp main.c CMD [ "./myapp" ]
-
Docker-compose
version: '3.3' services: code: image: ash258/gcc working_dir: /code2 container_name: ContainerGCC # Command could be make/gcc/... I use tail for keeping container alive so i can connect via exec and ash command: tail -f /dev/null volumes: - ./2:/code2
On this page
Contributors
MIT License
Created October 10, 2017
Updated January 28, 2023