Skip to content

Commit 0b91613

Browse files
authored
Merge pull request #1 from EspressoSystems/ma/add-nodejs
add nodejs base image
2 parents fee4fd1 + 712bef1 commit 0b91613

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ jobs:
1414
build_and_push_docker_image:
1515
name: Push Docker image to ghcr
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
include:
20+
- file: Dockerfile
21+
image: ghcr.io/espressosystems/ubuntu-base
22+
- file: nodejs.Dockerfile
23+
image: ghcr.io/espressosystems/nodejs-base
1724
steps:
1825
- uses: actions/checkout@v4
1926
- uses: docker/setup-qemu-action@v3
@@ -31,12 +38,13 @@ jobs:
3138
uses: docker/metadata-action@v5
3239
id: metadata
3340
with:
34-
images: ghcr.io/espressosystems/ubuntu-base
41+
images: ${{ matrix.image }}
3542

3643
- name: Build and push docker
3744
uses: docker/build-push-action@v6
3845
with:
3946
context: .
47+
file: ${{ matrix.file }}
4048
push: ${{ github.event_name != 'pull_request' }}
4149
tags: ${{ steps.metadata.outputs.tags }}
4250
labels: ${{ steps.metadata.outputs.labels }}

nodejs.Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ubuntu:24.04
2+
3+
RUN apt-get update \
4+
&& apt-get install -y --no-install-recommends tini curl libcurl4 nodejs npm libusb-1.0.0 \
5+
&& rm -rf /var/lib/apt/lists/* \
6+
&& npm install -g yarn \
7+
&& yarn global add typescript ts-node \
8+
&& rm -rf /usr/local/share/.cache
9+
10+
ENTRYPOINT ["tini", "--"]

0 commit comments

Comments
 (0)