diff --git a/Dockerfile b/Dockerfile index 5692da3..c2e9652 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,20 @@ +# Gunakan versi terbaru LTS (saat ini Node.js 20.x) +FROM node:20 -FROM node:16.15.0 -FROM node:18.2.0 -RUN apt-get update -RUN apt-get upgrade -y -RUN apt-get install nodejs -y +# Update dan upgrade dependencies OS (opsional tapi bersih) +RUN apt-get update && apt-get upgrade -y +# Set working directory WORKDIR /app -COPY . /app + +# Salin semua file ke container +COPY . . + +# Install dependencies RUN npm install + +# Jalankan aplikasi CMD ["node", "index.js"] + +# Port yang digunakan aplikasi EXPOSE 6892 diff --git a/database/db.js b/database/db.js index 1282ae9..e3d7777 100644 --- a/database/db.js +++ b/database/db.js @@ -3,9 +3,9 @@ var __path = process.cwd(), { color } = require(__path + '/lib/color.js') // Connection URL -var url = 'https://api.sekha.me'; +var url = 'https://api-accel.zone.id/'; try { -if(url == 'https://api.sekha.me') throw console.log(color('Cek konfigurasi database, var url belum diisi','red')); +if(url == 'https://api-accel.zone.id/') throw console.log(color('Cek konfigurasi database, var url belum diisi','red')); } catch (e) { return; }