Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ jobs:
with:
name: artifact_sxtnode
path: target/release/
- name: Patch ELF interpreter for Ubuntu base image
run: |
set -eux
sudo apt-get update -qq
sudo apt-get install -qq -y patchelf file
chmod +x target/release/sxt-node
file target/release/sxt-node
patchelf --set-interpreter /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 target/release/sxt-node
file target/release/sxt-node
- name: Build and Release Dockerfile
env:
VERSION: ${{ needs.setup.outputs.VERSION }}
Expand Down
7 changes: 5 additions & 2 deletions sxtnode.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Build SxT Node Image
FROM docker.io/parity/base-bin:latest
# Ubuntu 24.04 LTS provides glibc 2.39, which covers all GLIBC symbol
# versions referenced by the Nix-built binary. See PR #198.
FROM docker.io/library/ubuntu:24.04

# Switch to root user to make system-wide changes
USER root
Expand All @@ -9,8 +11,9 @@ RUN useradd -m -u 1001 -U -s /bin/sh -d /sxtuser sxtuser && \
mkdir -p /data /key /sxtuser/.local/share && \
chown -R sxtuser:sxtuser /data /key && \
ln -s /data /sxtuser/.local/share/sxtuser && \
apt-get update --allow-insecure-repositories && \
apt-get update && \
apt-get install -y \
ca-certificates \
curl \
apache2-utils \
&& apt-get clean && \
Expand Down
Loading