Image Size Optimization Challenge

This commit is contained in:
Syifa 2025-08-11 20:24:49 +07:00
parent bbb8bb07ad
commit 190da7c1e9
8 changed files with 8 additions and 9 deletions

View File

@ -10,5 +10,4 @@ This project compares Docker image sizes and build times using different optimiz
- ✅ .dockerignore Optimization
- ✅ Layer Caching Strategies
## Folder Structure
## Folder Structure

View File

@ -28,4 +28,4 @@ app.get('/', (req, res) => {
app.listen(PORT, () => {
console.log(`Server running at http://localhost:${PORT}`);
});
});

View File

@ -28,4 +28,4 @@ h1 {
p {
color: #1976d2;
font-size: 1.2rem;
}
}

View File

@ -14,4 +14,4 @@ WORKDIR /app
COPY --from=builder /app .
EXPOSE 3000
CMD ["node", "app/index.js"]
CMD ["node", "app/index.js"]

View File

@ -18,4 +18,4 @@ COPY . .
EXPOSE 3000
# Jalankan aplikasi Node.js saat container dijalankan
CMD ["node", "app/index.js"]
CMD ["node", "app/index.js"]

View File

@ -14,4 +14,4 @@ RUN npm install
COPY . .
EXPOSE 3000
CMD ["node", "app/index.js"]
CMD ["node", "app/index.js"]

2
package-lock.json generated
View File

@ -822,4 +822,4 @@
"license": "ISC"
}
}
}
}

View File

@ -12,4 +12,4 @@
"dependencies": {
"express": "^5.1.0"
}
}
}