Skip to content

Commit

Permalink
feat: 🎸 更新独角数卡
Browse files Browse the repository at this point in the history
  • Loading branch information
monlor committed May 3, 2024
1 parent d6468ac commit 80d3a5c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dujiaoka/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM stilleshan/dujiaoka:2.0.6
FROM ghcr.io/apocalypsor/dujiaoka:usdt

LABEL MAINTAINER [email protected]
LABEL VERSION 2.0.6
LABEL VERSION 2.1.0

RUN git clone https://github.com/LightCountry/TokenPay && \
chown application:application -R TokenPay && \
Expand Down
23 changes: 23 additions & 0 deletions dujiaoka/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

export INSTALL=false

sed -i "s/^DB_HOST=.*/DB_HOST=${DB_HOST}/g" /dujiaoka/.env
sed -i "s/^DB_PORT=.*/DB_PORT=${DB_PORT:-3306}/g" /dujiaoka/.env
sed -i "s/^DB_DATABASE=.*/DB_DATABASE=${DB_DATABASE}/g" /dujiaoka/.env
sed -i "s/^DB_USERNAME=.*/DB_USERNAME=${DB_USERNAME}/g" /dujiaoka/.env
sed -i "s/^DB_PASSWORD=.*/DB_PASSWORD=${DB_PASSWORD}/g" /dujiaoka/.env

sed -i "s/^REDIS_HOST=.*/REDIS_HOST=${REDIS_HOST}/g" /dujiaoka/.env
sed -i "s/^REDIS_PASSWORD=.*/REDIS_PASSWORD=${REDIS_PASSWORD}/g" /dujiaoka/.env
sed -i "s/^REDIS_PORT=.*/REDIS_PORT=${REDIS_PORT:-6379}/g" /dujiaoka/.env

sed -i "s/^CACHE_DRIVER=.*/CACHE_DRIVER=${CACHE_DRIVER:-redis}/g" /dujiaoka/.env

if [ ! -f /dujiaoka/.install.lock ]; then
echo "启用初始化安装模式..."
export INSTALL=true
touch /dujiaoka/.install.lock
fi

/opt/start.sh

0 comments on commit 80d3a5c

Please sign in to comment.