Skip to content

Commit a2e3b06

Browse files
committed
feat: init repo
0 parents  commit a2e3b06

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ruby:3-alpine
2+
LABEL maintainer "Tunghsiao Liu <[email protected]>"
3+
4+
RUN apk update -f \
5+
&& apk add --no-cache -f \
6+
bash \
7+
build-base \
8+
cmake \
9+
curl \
10+
gcc \
11+
git \
12+
nodejs \
13+
npm \
14+
yarn \
15+
&& rm -rf /var/cache/apk/*
16+
17+
RUN npm install -g grunt-cli
18+
19+
VOLUME /opt/amsf/

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
all: build
2+
3+
build:
4+
docker build -t sparanoid/ruby-node:latest .
5+
6+
run:
7+
docker run --rm -it --name ruby-node sparanoid/ruby-node:latest
8+
9+
push:
10+
docker push sparanoid/ruby-node:latest
11+
12+
stop:
13+
docker rm -f ruby-node
14+
15+
clean:
16+
docker rmi sparanoid/ruby-node:latest

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Docker Ruby with Node.js
2+
3+
Ruby with Node.js LTS Dockerfile for [Almace Scaffolding](https://sparanoid.com/lab/amsf/) or other Ruby-Node.js mixed projects.
4+
5+
# Environments
6+
7+
- Alpine
8+
- Ruby 3
9+
- Node.js 14 LTS
10+
- npm
11+
- Yarn

0 commit comments

Comments
 (0)