Make, gcc, g++ and musl library for development on Alpine Linux
2.9K
Docker image: Make, gcc, binutils, autoconf, musl and other tools for compiling packages on Alpine Linux
This image is supposed to build C and C++ sources into an output usable on Alpine Linux. This image is built automatically on the top of the tag latest from the Alpine repository, so that it is always based on the latest Alpine Linux. Packages make, gcc, g++, musl-dev, binutils, autoconf, automake, libtool, pkgconfig, check-dev, file nad patch have to be updated from time to time by triggering a new build manually.
latest, 3.13, 3.12docker pull prantlf/alpine-make-gcc
Typically, you will use this image as the first image in a multi-stage image build, for example:
FROM prantlf/alpine-make-gcc:latest as builder
RUN cd /root && \
wget https://host/path/sources.tar.gz && \
tar xf sources.tar.gz && \
cd sources && \
make
FROM alpine:latest
COPY --from=builder /root/sources/binary /usr/bin/
The local image is built as alpine-make-gcc and pushed to the docker hub as prantlf/alpine-make-gcc:3.12 and prantlf/alpine-make-gcc:latest.
# Remove an old local image:
make clean
# Check the `Dockerfiles`:
make lint
# Build a new local image:
make build
# Enter an interactive shell inside the created image:
make run
# Login to the docker hub:
make login
# Push the local image to the docker hub:
make push
Copyright (c) 2020-2021 Ferdinand Prantl
Licensed under the MIT license.
Content type
Image
Digest
sha256:2da9e1fc2…
Size
75.6 MB
Last updated
over 3 years ago
docker pull prantlf/alpine-make-gcc:3.16