Compare commits

1 Commits

Author SHA1 Message Date
7b513b2b97 Add configuration support 2023-02-11 16:05:20 -05:00
4 changed files with 28 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
"title": "RSSHub", "title": "RSSHub",
"id": "com.hwarf.rsshub", "id": "com.hwarf.rsshub",
"version": "1.0.0", "version": "1.0.0",
"runtimeDirs": [ "/root/.npm" ], "runtimeDirs": [ "/home/cloudron/.npm" ],
"healthCheckPath": "/", "healthCheckPath": "/",
"httpPort": 1200, "httpPort": 1200,
"addons": { "addons": {

View File

@@ -1 +1,15 @@
FROM diygod/rsshub FROM cloudron/base:4.0.0@sha256:31b195ed0662bdb06a6e8a5ddbedb6f191ce92e8bee04c03fb02dd4e9d0286df
RUN mkdir -p /app/code /app/data
WORKDIR /app/code/
RUN git clone https://git.hwarf.com/jglemza/RSSHub.git /app/code
RUN npm install --omit=dev
COPY rsshub.env start.sh /app/pkg/
RUN touch /app/data/.env && \
ln -s /app/data/.env /app/code/.env && \
mkdir /home/cloudron/.npm && \
chown -R cloudron:cloudron /home/cloudron/.npm
CMD [ "/app/pkg/start.sh" ]

4
rsshub.env Normal file
View File

@@ -0,0 +1,4 @@
# A full list of configuration variables can be found at:
# https://docs.rsshub.app/en/install/#configuration
PORT=1200

8
start.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -ex
cp -n /app/pkg/rsshub.env /app/data/.env
echo "Start RSSHub"
chown -R cloudron:cloudron /app/data
exec /usr/local/bin/gosu cloudron:cloudron npm start --prefix /app/code