# Gunakan base image Alpine Linux terbaru FROM alpine:latest # Set working directory di dalam container WORKDIR /app # Install Node.js dan npm (dan optionally bash & curl) RUN apk update && \ apk add --no-cache nodejs npm bash curl # Salin file konfigurasi COPY package*.json ./ # Install dependency project (berdasarkan package.json) RUN npm install # Salin file project ke dalam container COPY . . EXPOSE 3000 CMD ["node", "app.js"]