We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359ee56 commit d391407Copy full SHA for d391407
gcc/README.md
@@ -0,0 +1,29 @@
1
+# GCC
2
+
3
+The GNU Compiler Collection is a compiling system that supports several languages.
4
5
+This image is based on https://github.com/docker-library/gcc
6
7
+### Compiling your app inside of a container
8
9
+To compile, but not run your app inside the Docker instance, you can write something like:
10
11
+```
12
+docker run -it --rm \
13
+ --mount type=bind,source="$(pwd)",target=/usr/src/myapp \
14
+ --workdir /usr/src/myapp \
15
+ docker.io/boxcutter/gcc:13 -std=c++17 -O2 myapp.c -o myapp -Wall
16
17
18
+### Create a Containerfile in your app project
19
20
21
+FROM docker.io/boxcutter/gcc:13
22
23
+WORKDIR /usr/src/myapp
24
25
+COPY . .
26
+RUN gcc -o myapp main.c
27
28
+CMD ["./myapp"]
29
0 commit comments