Rocky Linux build tools for multi-stage Docker builds
825
Build-time image with compilation tools for multi-stage Docker builds. Based on Rocky Linux 10 minimal.
This image is NOT intended for runtime. It exists solely as a FROM ... AS builder stage. Your final image should use ataidesorg/rockylinux:10.
# Use as build stage in your Dockerfile
FROM ataidesorg/builder:10 AS builder
ARG APP_VERSION
WORKDIR /tmp
RUN curl -fsSL "https://example.com/app-${APP_VERSION}.tar.gz" -o app.tar.gz && \
tar -xzf app.tar.gz && \
cd app && make install DESTDIR=/install
# Final stage — hardened runtime
FROM ataidesorg/rockylinux:10
COPY --from=builder /install /
CMD ["/usr/local/bin/app"]
| Category | Packages |
|---|---|
| Compilers | gcc, g++, make, cmake, autoconf, automake, libtool |
| Libraries | glibc-devel, libgcc, libstdc++-devel, kernel-headers |
| Archive | tar, gzip, bzip2, xz, unzip |
| Network | curl, wget |
| VCS | git |
| Text | sed, grep, gawk |
| File | findutils, diffutils, patch, which, file |
Multi-stage builds keep your runtime images minimal. The builder provides everything needed to compile and package software, but none of it leaks into the final image. Only the specific binaries you COPY --from=builder make it through.
Builder (255 packages) → COPY binary → Runtime (26 packages)
↑ ↑
gcc, git, make, ... Hardened Rocky Linux base
NOT in production What actually runs
git clone https://github.com/ataidesorg/container-images.git
cd container-images
python scripts/build.py --filter builder
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
If you discover a security vulnerability do not open a public issue, instead send an email to [email protected]
Ataides - Forging the future of cybersecurity through open-source innovation.
Content type
Image
Digest
sha256:ec8ba58a0…
Size
215.9 MB
Last updated
7 months ago
docker pull ataidesorg/builder