FROM ubuntu:22.04 # Install curl, Node.js, dan npm RUN apt-get update && \ apt-get install -y curl && \ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ apt-get install -y nodejs # Buat direktori kerja WORKDIR /app # Salin file aplikasi COPY app.js . # Jalankan app.js CMD ["node", "app.js"]