TestMate • Member of Indonesian Bioinformatics and Biodiversity Society • Google Developer Groups Medan • Open source enthusiast and Communities Fellow • Tech Background: Backend stuff, IaaS & PaaS Cloud, DevOps, more at https://fikihfirmansyah.my.id
sama (dependencies dan bisa dijalankan di mana saja) • Mengisolasi berbagai hal dari satu sama lain • Prosedur pembuatan yang terstandarisasi (Dockerfile)
base FROM node:14 # Set the working directory in the container WORKDIR /usr/src/app # Copy package.json and package-lock.json (if available) to the working directory COPY package*.json ./ # Install app dependencies RUN npm install # Bundle app source inside the Docker image COPY . . # Expose port 3000 to the outside once the container has launched EXPOSE 3000 # Define the command to run the app CMD ["node", "index.js"]