This commit is contained in:
2023-02-09 18:11:35 -05:00
parent d069ff0bc7
commit bb3532a010
3 changed files with 11 additions and 10 deletions

View File

@@ -2,6 +2,6 @@
"version": "0.1.0", "version": "0.1.0",
"healthCheckPath": "/", "healthCheckPath": "/",
"httpPort": 1200, "httpPort": 1200,
"runtimeDirs": [ "/root/.npm" ], "runtimeDirs": [ "/home/cloudron/.npm" ],
"manifestVersion": 2 "manifestVersion": 2
} }

View File

@@ -1,14 +1,14 @@
FROM cloudron/base:4.0.0@sha256:31b195ed0662bdb06a6e8a5ddbedb6f191ce92e8bee04c03fb02dd4e9d0286df FROM cloudron/base:4.0.0@sha256:31b195ed0662bdb06a6e8a5ddbedb6f191ce92e8bee04c03fb02dd4e9d0286df
RUN mkdir -p /app/code RUN mkdir -p /app/code
WORKDIR /app/code WORKDIR /app/code/
RUN git clone https://github.com/DIYgod/RSSHub.git /app/code/rsshub RUN git clone https://git.hwarf.com/jglemza/RSSHub.git /app/code
RUN cd /app/code/rsshub
RUN npm install /app/code/rsshub
RUN npm ci --production
COPY start.sh /app/pkg/ RUN npm install
#RUN npm ci --omit=dev
ADD start.sh /app/pkg/
CMD [ "/app/pkg/start.sh" ] CMD [ "/app/pkg/start.sh" ]

View File

@@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -eu
cd /app/code/rsshub chown -R cloudron:cloudron /app/code
npm start echo "Start RSSHub"
exec /usr/local/bin/gosu cloudron:cloudron npm start --prefix /app/code