Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thisismydesign/ruby-node-alpine
Ruby + Node alpine images
https://github.com/thisismydesign/ruby-node-alpine
Last synced: 8 days ago
JSON representation
Ruby + Node alpine images
- Host: GitHub
- URL: https://github.com/thisismydesign/ruby-node-alpine
- Owner: thisismydesign
- Created: 2021-12-02T16:51:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-17T22:38:44.000Z (over 2 years ago)
- Last Synced: 2024-05-02T03:16:28.284Z (8 months ago)
- Language: Dockerfile
- Size: 11.7 KB
- Stars: 16
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# ruby-node-alpine
#### Simple Dockerfile for building Ruby + Node alpine images for custom versions.
[Why is this topic so complicated?](https://csaba-apagyi.medium.com/how-to-install-a-specific-node-js-version-in-an-alpine-docker-image-3edc1c2c64be)
Images available on [Docker Hub](https://hub.docker.com/repository/docker/thisismydesign/ruby-node-alpine) (currently on free tier with limited pulls, consider [supporting](https://github.com/sponsors/thisismydesign)).
```
docker run thisismydesign/ruby-node-alpine:3.0.2-16.13.0-alpine /bin/sh -c "ruby --version && node --version"
```Available versions (defined in the [GitHub Actions workflow](.github/workflows/ci.yml)):
- Ruby: `[3.0.0, 3.0.1, 3.0.2, 3.0.3]`
- Node: `[16.13.0, 16.13.1]`Versions are easily extendable by opening a PR or forking the repo and pushing images to your own registry.
## Usage
```sh
export RUBY_VERSION=3.0.3
export NODE_VERSION=16.13.0
docker build . --build-arg RUBY_VERSION=$RUBY_VERSION --build-arg NODE_VERSION=$NODE_VERSION --tag ruby-node-alpine:$RUBY_VERSION-$NODE_VERSIONdocker run --rm ruby-node-alpine:$RUBY_VERSION-$NODE_VERSION /bin/sh -c "ruby --version && node --version && yarn --version"
```