Build-Base is a Docker-based project designed to create base build images for projects that have a Go backend and a JavaScript frontend. This project provides a standardized environment for building and deploying applications using either musl
or glibc
.
- Musl-based Image: Lightweight Alpine-based image for minimal footprint.
- Glibc-based Image: Debian-based image for compatibility with a wider range of software.
- Includes essential tools and dependencies for Go and JavaScript development.
You can pull the pre-built images from Docker Hub:
docker pull docker.io/pcm0/build-base:musl
docker pull docker.io/pcm0/build-base:glibc
To build your application using one of the base images, create a Dockerfile in your project directory and specify the desired base image. For example:
# For musl-based image
FROM docker.io/pcm0/build-base:musl
# For glibc-based image
FROM docker.io/pcm0/build-base:glibc
# Add your build instructions here
The Dockerfile defines two base images:
-
Musl-based Image:
- Starts from
node:22-alpine
andgolang:alpine
- Installs
pnpm
and Go tools. - Provides a base image with build tools and dependencies.
- Starts from
-
Glibc-based Image:
- Starts from
node:22-bookworm
andgolang:bookworm
- Installs
pnpm
and Go tools. - Provides a base image with build tools and dependencies.
- Starts from
Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.
This project is licensed under the GNU GPLv3.