It might be useful to offer a Dockerized version of the application as well.
Here you can find some of my notes.
Dockerfile
FROM node:19 RUN apt update -y && apt upgrade -y WORKDIR /usr/src/app COPY ./app/package*.json ./ RUN npm install COPY ./app/ . EXPOSE 3000 CMD ["npm", "run","build:bubo"] RUN crontab -l CMD ["service", "cron", "start"] CMD ["python3", "-m","http.server","3000", "-d","/usr/src/app/public"]
compose.yml
services: app: build: context: . dockerfile: ./Dockerfile ports: - "3000:3000" volumes: - ./app/public/:/usr/src/app/public/ - ./app/config/:/usr/src/app/config/
Create first folder bubo-rss and copy there both file, plus add folder app with all app source.
inside bubo-rss folder run the command docker compose up -d
http://localhost:3000
you can also add in the local crontab with your custom schedule docker exec -it bubo-rss-app-1 npm --prefix /usr/src/app/ run build:bubo
It might be useful to offer a Dockerized version of the application as well.
Here you can find some of my notes.
Dockerfile
FROM node:19 RUN apt update -y && apt upgrade -y WORKDIR /usr/src/app COPY ./app/package*.json ./ RUN npm install COPY ./app/ . EXPOSE 3000 CMD ["npm", "run","build:bubo"] RUN crontab -l CMD ["service", "cron", "start"] CMD ["python3", "-m","http.server","3000", "-d","/usr/src/app/public"]compose.yml
services: app: build: context: . dockerfile: ./Dockerfile ports: - "3000:3000" volumes: - ./app/public/:/usr/src/app/public/ - ./app/config/:/usr/src/app/config/Create first folder bubo-rss and copy there both file, plus add folder app with all app source.
inside bubo-rss folder run the command
docker compose up -dhttp://localhost:3000
you can also add in the local crontab with your custom schedule
docker exec -it bubo-rss-app-1 npm --prefix /usr/src/app/ run build:bubo