Sign inSign up

boonjit2/c_build

By boonjit2

•Updated about 8 years ago

a gcc container used to build a static binary for using in a minimum sized container

Image
0

72

boonjit2/c_build repository overview

a gcc container used to build a static binary for using in a minimum sized container

⁠Dockerfile

FROM scratch WORKDIR / ADD . / CMD [
"/epl_http_sv"
, "socket_type=tcp"
, "debug_mode=0"
, "port=18080"
, "delay_after_send=0"
, "send_msg_head_1=/head_1.txt"
, "send_msg_body_1=/body_1.txt"
]

⁠Docker run

docker run -it --rm --name c_build_1 -p 16080:18080 -v /tmp:/onjit2/c_build:1

⁠gcc flag for building static binary

⁠add this flag

-static

Tag summary

Content type

Image

Digest

Size

66.4 MB

Last updated

about 8 years ago

docker pull boonjit2/c_build:1