pk 6 months ago
parent
commit
18ca4a7059
2 changed files with 14 additions and 2 deletions
  1. 13 1
      Dockerfile
  2. 1 1
      server.js

+ 13 - 1
Dockerfile

@@ -1,6 +1,18 @@
 FROM node:22-bookworm
 
-RUN apt update -qq && apt install -qq -y wget2 aria2
+# Set environment variables for non-interactive installation
+ENV DEBIAN_FRONTEND=noninteractive
+
+# Install tzdata package for timezone configuration
+RUN apt-get update && \
+    apt-get install -y tzdata && \
+    ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime && \
+    dpkg-reconfigure --frontend noninteractive tzdata && \
+    apt-get clean
+
+RUN apt update -qq && \
+    apt install -qq -y wget2 aria2 && \
+    apt clean
 
 ADD . /home/node/kisybi
 

+ 1 - 1
server.js

@@ -51,6 +51,6 @@ schedule.scheduleJob('0 3 * * *', () => {
     }
 });
 
-schedule.scheduleJob('*/5 * * * *', () => {
+schedule.scheduleJob('*/30 * * * *', () => {
     console.log("service is alive")
 })