Skip to content

Commit

Permalink
feat: 🎸 添加xboard
Browse files Browse the repository at this point in the history
  • Loading branch information
monlor committed Jul 4, 2024
1 parent 178b1e3 commit 70b2c6c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-image-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ on:
- weserv
- media-unlock
- sniproxy
- xboard
tag:
description: 'Image tag'

Expand Down
10 changes: 10 additions & 0 deletions xboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ghcr.io/cedar2025/xboard

LABEL MAINTAINER [email protected]
LABEL VERSION 1.0.0

COPY --chmod=0655 entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

CMD []
11 changes: 11 additions & 0 deletions xboard/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

DATA_DIR=/www/.docker/.data/

if [ ! -f "${DATA_DIR}/.env" ]; then
touch "${DATA_DIR}/.env"
fi

ln -sf "${DATA_DIR}/.env" /www/.env

/usr/bin/supervisord --nodaemon -c /etc/supervisor/supervisord.conf

0 comments on commit 70b2c6c

Please sign in to comment.