Skip to content

Commit

Permalink
Prototyped image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvenga committed May 31, 2024
1 parent c903c46 commit 619e201
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true
end_of_line = lf
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Build"
on:
push:
branches:
- master
schedule:
# Random time each week.
- cron: '48 7 * * 1'

jobs:
build:
uses: silvenga-docker/building/.github/workflows/publish-github.yaml@master
secrets: inherit
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM ubuntu:noble AS base

LABEL org.opencontainers.image.authors "Mark Lopez <[email protected]>"

RUN set -xe \
&& apt-get update \
&& apt-get dist-upgrade -y \
# Common
&& apt-get install -y \
wget \
# Redlib
&& wget https://github.com/redlib-org/redlib/releases/latest/download/redlib -O /tmp/redlib \
&& wget https://github.com/redlib-org/redlib/releases/latest/download/redlib.sha512 -O /tmp/redlib.sha512 \
&& sed -i -e 's/target\/x86_64-unknown-linux-musl\/release/\/tmp/g' /tmp/redlib.sha512 \
&& sha512sum --check /tmp/redlib.sha512 \
&& mv /tmp/redlib /usr/bin/redlib \
&& chmod +x /usr/bin/redlib \
&& rm /tmp/redlib.sha512 \
# Cleanup
&& apt-get autoremove -y --purge \
&& apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin

# Default user in Ubuntu Noble.
USER 1000

HEALTHCHECK --interval=1m --timeout=3s CMD wget --spider --q http://localhost:8080/settings || exit 1

EXPOSE 8080
VOLUME [ "/config" ]
ENTRYPOINT ["redlib"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# redlib
Personal Redlib container image, updated from latest, weekly.

Personal [Redlib](https://github.com/redlib-org/redlib) container image, updated from latest, weekly.

0 comments on commit 619e201

Please sign in to comment.