Image Size Optimization Challenge
This commit is contained in:
parent
bbb8bb07ad
commit
190da7c1e9
|
@ -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
|
|
@ -28,4 +28,4 @@ app.get('/', (req, res) => {
|
|||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Server running at http://localhost:${PORT}`);
|
||||
});
|
||||
});
|
|
@ -28,4 +28,4 @@ h1 {
|
|||
p {
|
||||
color: #1976d2;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
|
@ -14,4 +14,4 @@ WORKDIR /app
|
|||
COPY --from=builder /app .
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["node", "app/index.js"]
|
||||
CMD ["node", "app/index.js"]
|
|
@ -18,4 +18,4 @@ COPY . .
|
|||
EXPOSE 3000
|
||||
|
||||
# Jalankan aplikasi Node.js saat container dijalankan
|
||||
CMD ["node", "app/index.js"]
|
||||
CMD ["node", "app/index.js"]
|
|
@ -14,4 +14,4 @@ RUN npm install
|
|||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["node", "app/index.js"]
|
||||
CMD ["node", "app/index.js"]
|
|
@ -822,4 +822,4 @@
|
|||
"license": "ISC"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -12,4 +12,4 @@
|
|||
"dependencies": {
|
||||
"express": "^5.1.0"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue