Sign inSign up

ash258/gcc

By ash258

Updated almost 9 years ago

Alpine GCC image

Image
0

157

ash258/gcc repository overview

GCC

Alpine gcc image for Docker with Gcc, Make, Valgrind

How to use

  1. 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" ]
    
  2. 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
    
    

Tag summary

Content type

Image

Digest

Size

69.1 MB

Last updated

almost 9 years ago

docker pull ash258/gcc