Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
FROM --platform=linux/amd64 node:lts-bookworm-slim
SHELL ["/bin/bash", "-c"]
RUN apt update && apt install -y curl bash git tar gzip libc++-dev

# 🛡️ SHELL: Setting strict flags for better error handling in pipes
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# 🚀 OPTIMIZATION:
# 1. Combine update + install + cleanup in ONE layer.
# 2. Use --no-install-recommends to avoid bloat.
# 3. Explicitly remove apt cache files to reduce image size.
# 4. Removed 'bash', 'tar', 'gzip' as they are built-in to Bookworm.
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
git \
libc++-dev \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*