Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:
build_and_push_docker_image:
name: Push Docker image to ghcr
runs-on: ubuntu-latest
strategy:
matrix:
include:
- file: Dockerfile
image: ghcr.io/espressosystems/ubuntu-base
- file: nodejs.Dockerfile
image: ghcr.io/espressosystems/nodejs-base
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
Expand All @@ -31,12 +38,13 @@ jobs:
uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/espressosystems/ubuntu-base
images: ${{ matrix.image }}

- name: Build and push docker
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.file }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
Expand Down
10 changes: 10 additions & 0 deletions nodejs.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:24.04

RUN apt-get update \
&& apt-get install -y curl libcurl4 nodejs npm libusb-1.0.0 \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["tini", "--"]

RUN npm install -g yarn \
&& yarn global add typescript ts-node \
&& rm -rf /usr/local/share/.cache
Loading