Skip to content

Commit

Permalink
GH workflow with a glibc image build step
Browse files Browse the repository at this point in the history
  • Loading branch information
andrius committed Feb 19, 2024
1 parent fe6dd51 commit 65f82d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
docker buildx build \
--push \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64 \
--tag andrius/alpine-ruby:${{ matrix.alpine_version }} \
--build-arg ALPINE_VERSION=${{ matrix.alpine_version }} \
--file $DOCKERFILE \
Expand Down
27 changes: 7 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,19 @@
Ruby Docker image
=================
# Ruby Docker image

The smallest Docker image with Ruby, is based on Alpine Linux image, which is only a 5MB image. It does only have ruby and bundler (except image with `tiny` tag).

Total size of this image is only:

[![](https://images.microbadger.com/badges/image/andrius/alpine-ruby.svg)](https://microbadger.com/images/andrius/alpine-ruby "Get your own image badge on microbadger.com")
The smallest Docker image with Ruby, is based on Alpine Linux image, which is only a 5MB image. It does only include ruby and bundler gem.

- [Github link](//github.com/andrius/alpine-ruby/)
- [Docker hub link](//hub.docker.com/r/andrius/alpine-ruby/)


Support
-------
## Support

This is minimal image with only necessary packages, to run your app in production. Image build by using only official applications from Alpine linux, and supported AS IS.

Tags
----
## Tags

Tags referring Alpine ruby version, not ruby version.

`glibc-latest` is an version that contains glibc to enable proprietary projects compiled against glibc and based on latest [frolvlad/alpine-glibc](https://hub.docker.com/r/frolvlad/alpine-glibc).

Usage Example
-------------
## Usage Example

Check ruby version:

Expand All @@ -40,8 +29,7 @@ docker run -ti --rm andrius/alpine-ruby ruby -e "puts 'Hello, world!'"

Once you have run this command you will get printed 'Hello World' from Ruby!

Development packages
--------------------
## Development packages

Sometimes you could need to install various gems, where development packages is mandatory.

Expand All @@ -53,8 +41,7 @@ apk add --update ruby-dev build-base \
mariadb-dev postgresql-dev
```

About nokogiri installation
---------------------------
## About nokogiri installation

In order to install nokogiri, you could use alpine's version:

Expand Down

0 comments on commit 65f82d6

Please sign in to comment.