microsoft-vscode-extension-samples
SUCCESS
11m 20s
History Source
SummaryIterations1Transcript17Dockerfile
Dockerfile28 lines · 651 chars
FROM node:slim

# Install essential build tools
RUN apt-get update \
  && apt-get install -y --no-install-recommends \
     build-essential \
     python3 \
     ca-certificates \
  && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /workspace

# Copy repository
COPY . .

# Try to build helloworld-sample if present (skip if not)
RUN set -e; \
  if [ -d "helloworld-sample" ]; then \
    echo "Building helloworld-sample"; \
    (cd helloworld-sample && npm ci --workspaces=false && npm run compile); \
  else \
    echo "helloworld-sample not found; skipping"; \
  fi

# Default to an interactive shell for inspection
CMD ["/bin/bash"]