luolongfei пре 3 година
родитељ
комит
eaa586f721
4 измењених фајлова са 1 додато и 28 уклоњено
  1. 0 3
      Dockerfile
  2. 0 18
      app.json
  3. 1 1
      docker-entrypoint.sh
  4. 0 6
      heroku.yml

+ 0 - 3
Dockerfile

@@ -3,9 +3,6 @@ FROM php:7.4.19-alpine3.13
 LABEL author="mybsdc <[email protected]>" \
     maintainer="luolongfei <[email protected]>"
 
-# 以兼容 heroku
-USER root
-
 ENV TZ Asia/Shanghai
 
 WORKDIR /app

+ 0 - 18
app.json

@@ -1,18 +0,0 @@
-{
-    "name": "freenom",
-    "description": "Freenom domain name renews automatically.",
-    "keywords": ["freenom", "auto-renewal"],
-    "env": {
-        "FREENOM_USERNAME": {
-            "description": "你的 freenom 账户",
-            "value": ""
-        },
-        "FREENOM_PASSWORD": {
-            "description": "你的 freenom 密码",
-            "value": ""
-        }
-    },
-    "website": "https://github.com/luolongfei/freenom",
-    "repository": "https://github.com/luolongfei/freenom",
-    "stack": "container"
-}

+ 1 - 1
docker-entrypoint.sh

@@ -54,6 +54,6 @@ echo -e "${CRON_COMMAND}" >> /etc/crontabs/root
 
 echo -e "[${green}Info${plain}] 计划任务:${CRON_COMMAND}"
 
-chmod +x run && php run
+php run
 
 exec "$@"

+ 0 - 6
heroku.yml

@@ -1,6 +0,0 @@
-setup:
-  config:
-    IS_HEROKU: 1
-build:
-  docker:
-    web: Dockerfile