Skip to content

Commit 170f266

Browse files
authored
v23.2.4 (#8)
1 parent f26f93b commit 170f266

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/docker-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
# TODO: Change variable to your image's name.
1111
IMAGE_NAME: elements
12-
VERSION: "23.2.3"
12+
VERSION: "23.2.4"
1313

1414
jobs:
1515
# Push image to GitHub Packages.

23.2.4/Dockerfile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM debian:buster-slim as builder
2+
3+
# VERSION of Elements Core to be download
4+
ARG VERSION=23.2.4
5+
ARG TARGETPLATFORM
6+
7+
RUN set -ex \
8+
&& if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then export TARGETPLATFORM=x86_64-linux-gnu; fi \
9+
&& if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then export TARGETPLATFORM=aarch64-linux-gnu; fi \
10+
&& apt-get update \
11+
&& apt-get install -qq --no-install-recommends ca-certificates wget \
12+
&& cd /tmp \
13+
&& wget -qO elements.tar.gz "https://github.com/ElementsProject/elements/releases/download/elements-$VERSION/elements-$VERSION-$TARGETPLATFORM.tar.gz" \
14+
&& mkdir bin \
15+
&& tar -xzvf elements.tar.gz -C /tmp/bin --strip-components=2 "elements-$VERSION/bin/elements-cli" "elements-$VERSION/bin/elementsd"
16+
17+
FROM debian:stretch-slim
18+
19+
# $USER name, and data $DIR to be used in the `final` image
20+
ARG USER=elements
21+
ARG DIR=/home/elements
22+
23+
COPY --from=builder "/tmp/bin" /usr/local/bin
24+
25+
# NOTE: Default GID == UID == 1000
26+
RUN adduser --disabled-password \
27+
--home "$DIR/" \
28+
--gecos "" \
29+
"$USER"
30+
31+
USER $USER
32+
33+
# Prevents `VOLUME $DIR/.elements/` being created as owned by `root`
34+
RUN mkdir -p "$DIR/.elements/"
35+
36+
# Expose volume containing all `elementsd` data
37+
VOLUME $DIR/.elements/
38+
39+
40+
ENTRYPOINT [ "elementsd" ]
41+
42+

0 commit comments

Comments
 (0)