2025-11-01 10:47:02 -04:00
|
|
|
|
# CICD Complete Setup - Optimized Build Order for Maximum Caching
|
|
|
|
|
|
# OPTIMIZATION STRATEGY:
|
|
|
|
|
|
# Phase 1: Extract dependency files (package.json, pyproject.toml)
|
|
|
|
|
|
# Phase 2: Install dependencies (cached layer, only invalidates when deps change)
|
|
|
|
|
|
# Phase 3: Clone full source code (doesn't bust dependency cache)
|
|
|
|
|
|
# Phase 4-6: Install packages and verify (requires full source)
|
|
|
|
|
|
#
|
|
|
|
|
|
# BENEFITS: Dependency installation ~20-30 minutes is cached across source code changes
|
2025-10-31 09:09:46 -04:00
|
|
|
|
ARG CICD_BASE_IMAGE=dogar.darkhelm.org/darkhelm.org/plex-playlist/cicd-base:latest
|
|
|
|
|
|
FROM ${CICD_BASE_IMAGE}
|
2025-10-27 08:39:54 -04:00
|
|
|
|
|
2025-10-29 16:01:39 -04:00
|
|
|
|
# Build args for cache busting
|
|
|
|
|
|
ARG GITHUB_SHA
|
|
|
|
|
|
ENV GITHUB_SHA=${GITHUB_SHA}
|
|
|
|
|
|
|
2025-10-27 15:30:11 -04:00
|
|
|
|
# Accept build arguments for Git checkout (no secrets here!)
|
2025-10-27 08:59:27 -04:00
|
|
|
|
ARG GITHUB_SHA
|
|
|
|
|
|
|
2025-10-27 08:39:54 -04:00
|
|
|
|
# Set working directory
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# OPTIMIZATION: Extract dependency files first for better layer caching
|
|
|
|
|
|
# Step 1: Clone repository minimally to get dependency files only
|
2025-10-27 15:30:11 -04:00
|
|
|
|
RUN --mount=type=secret,id=ssh_private_key \
|
|
|
|
|
|
mkdir -p ~/.ssh && \
|
|
|
|
|
|
cp /run/secrets/ssh_private_key ~/.ssh/id_rsa && \
|
|
|
|
|
|
chmod 600 ~/.ssh/id_rsa && \
|
|
|
|
|
|
echo "Host dogar.darkhelm.org" > ~/.ssh/config && \
|
|
|
|
|
|
echo " Port 2222" >> ~/.ssh/config && \
|
|
|
|
|
|
echo " StrictHostKeyChecking no" >> ~/.ssh/config && \
|
|
|
|
|
|
echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config && \
|
|
|
|
|
|
chmod 600 ~/.ssh/config && \
|
|
|
|
|
|
ssh-keyscan -p 2222 dogar.darkhelm.org >> ~/.ssh/known_hosts 2>/dev/null && \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
echo "=== Extracting dependency files for optimized caching ===" && \
|
2025-10-27 15:30:11 -04:00
|
|
|
|
GIT_SSH_COMMAND="ssh -F ~/.ssh/config" \
|
2025-10-27 08:59:27 -04:00
|
|
|
|
git clone --depth 1 --branch main \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
ssh://git@dogar.darkhelm.org:2222/DarkHelm.org/plex-playlist.git /tmp/repo && \
|
2025-10-27 08:59:27 -04:00
|
|
|
|
if [ -n "$GITHUB_SHA" ]; then \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
cd /tmp/repo && git checkout "$GITHUB_SHA" 2>/dev/null || echo "Using main branch HEAD"; \
|
2025-10-27 15:30:11 -04:00
|
|
|
|
fi && \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# Extract only dependency files for caching optimization
|
|
|
|
|
|
mkdir -p /workspace/backend /workspace/frontend && \
|
|
|
|
|
|
cp /tmp/repo/backend/pyproject.toml /workspace/backend/ 2>/dev/null || echo "No backend pyproject.toml" && \
|
|
|
|
|
|
cp /tmp/repo/frontend/package.json /workspace/frontend/ 2>/dev/null || echo "No frontend package.json" && \
|
|
|
|
|
|
cp /tmp/repo/frontend/yarn.lock /workspace/frontend/ 2>/dev/null || echo "No frontend yarn.lock" && \
|
|
|
|
|
|
cp /tmp/repo/.pre-commit-config.yaml /workspace/ 2>/dev/null || echo "No pre-commit config" && \
|
|
|
|
|
|
echo "✓ Dependency files extracted for optimized layer caching" && \
|
|
|
|
|
|
rm -rf /tmp/repo ~/.ssh
|
2025-10-27 08:39:54 -04:00
|
|
|
|
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# OPTIMIZATION PHASE 1: Install backend dependencies from extracted pyproject.toml
|
2025-10-27 08:39:54 -04:00
|
|
|
|
WORKDIR /workspace/backend
|
|
|
|
|
|
ENV VIRTUAL_ENV=/workspace/backend/.venv
|
|
|
|
|
|
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# Install backend dependencies first (before source code) for better caching
|
|
|
|
|
|
RUN echo "=== Installing Backend Dependencies (Phase 1: Optimized Caching) ===" && \
|
2025-10-31 18:42:23 -04:00
|
|
|
|
# Create project virtual environment
|
2025-10-31 11:25:34 -04:00
|
|
|
|
uv venv $VIRTUAL_ENV && \
|
2025-10-31 18:42:23 -04:00
|
|
|
|
# Check if base image optimization is available
|
|
|
|
|
|
echo "=== Base Image Optimization Status ===" && \
|
|
|
|
|
|
if [ -f "/opt/python-dev-tools/bin/python" ]; then \
|
|
|
|
|
|
echo "✓ Found pre-installed Python dev tools - leveraging cache" && \
|
|
|
|
|
|
uv pip list --python /opt/python-dev-tools/bin/python --format=freeze > /tmp/base-tools.txt && \
|
|
|
|
|
|
echo "Available pre-installed tools:" && \
|
|
|
|
|
|
head -10 /tmp/base-tools.txt; \
|
|
|
|
|
|
else \
|
|
|
|
|
|
echo "⚠ Pre-installed Python dev tools not found - fresh installation" && \
|
|
|
|
|
|
echo "Base image may need rebuild for optimal caching"; \
|
|
|
|
|
|
fi && \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# Install dependencies from extracted pyproject.toml (this layer will cache!)
|
|
|
|
|
|
if [ -f "pyproject.toml" ]; then \
|
|
|
|
|
|
echo "Installing project dependencies from pyproject.toml..." && \
|
2025-11-01 11:20:56 -04:00
|
|
|
|
# Create minimal source structure to satisfy package build requirements
|
|
|
|
|
|
mkdir -p src/backend && \
|
|
|
|
|
|
echo "# Temporary README for dependency caching phase" > ../README.md && \
|
|
|
|
|
|
echo "# Minimal __init__.py for build" > src/backend/__init__.py && \
|
|
|
|
|
|
# Install all dependencies including dev dependencies
|
2025-11-01 10:47:02 -04:00
|
|
|
|
uv sync --dev && \
|
|
|
|
|
|
echo "✓ Backend dependencies installed and cached"; \
|
2025-10-31 11:25:34 -04:00
|
|
|
|
else \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
echo "No pyproject.toml found, skipping dependency installation"; \
|
2025-10-31 11:25:34 -04:00
|
|
|
|
fi
|
2025-10-30 10:02:17 -04:00
|
|
|
|
|
2025-11-01 10:47:02 -04:00
|
|
|
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
|
|
# OPTIMIZATION PHASE 2: Install frontend dependencies from extracted package.json
|
2025-10-27 08:39:54 -04:00
|
|
|
|
WORKDIR /workspace/frontend
|
2025-10-28 09:30:12 -04:00
|
|
|
|
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# Setup frontend environment and install dependencies (before source code) for better caching
|
|
|
|
|
|
RUN echo "=== Installing Frontend Dependencies (Phase 2: Optimized Caching) ===" && \
|
2025-10-31 12:48:40 -04:00
|
|
|
|
echo "Available global tools (installed via npm):" && \
|
|
|
|
|
|
npm list -g --depth=0 2>/dev/null | head -10 || echo "Global npm tools available" && \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
which tsc && which eslint && which prettier || echo "Global tools verified" && \
|
2025-10-31 11:25:34 -04:00
|
|
|
|
# Create temporary swap file for memory-intensive yarn install
|
|
|
|
|
|
dd if=/dev/zero of=/tmp/swapfile bs=1M count=1024 2>/dev/null && \
|
2025-10-28 09:30:12 -04:00
|
|
|
|
mkswap /tmp/swapfile && \
|
|
|
|
|
|
swapon /tmp/swapfile || echo "Swap setup failed, continuing without swap"
|
|
|
|
|
|
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# Install frontend dependencies from extracted package.json (this layer will cache!)
|
|
|
|
|
|
RUN if [ -f "package.json" ]; then \
|
|
|
|
|
|
echo "Installing frontend dependencies from extracted package.json..." && \
|
|
|
|
|
|
export NODE_OPTIONS="--max-old-space-size=1024 --max-semi-space-size=64" && \
|
|
|
|
|
|
export UV_WORKERS=1 && \
|
|
|
|
|
|
echo "Memory info before install:" && \
|
|
|
|
|
|
free -h || true && \
|
|
|
|
|
|
INSTALL_SUCCESS=false && \
|
|
|
|
|
|
for i in 1 2 3; do \
|
|
|
|
|
|
echo "Attempt $i: Installing project-specific frontend dependencies..." && \
|
|
|
|
|
|
echo "(Common dev tools pre-installed globally for performance)" && \
|
|
|
|
|
|
timeout 2400 yarn install --immutable --mode=skip-build \
|
|
|
|
|
|
&& { INSTALL_SUCCESS=true; break; } || \
|
|
|
|
|
|
(echo "Attempt $i failed, cleaning up and retrying..." && \
|
|
|
|
|
|
rm -rf node_modules .yarn/cache .yarn/install-state.gz && \
|
|
|
|
|
|
yarn cache clean --all 2>/dev/null || true && \
|
|
|
|
|
|
sleep 60); \
|
|
|
|
|
|
done && \
|
|
|
|
|
|
rm -rf .yarn/cache && \
|
|
|
|
|
|
swapoff /tmp/swapfile 2>/dev/null || true && \
|
|
|
|
|
|
rm -f /tmp/swapfile && \
|
|
|
|
|
|
if [ "$INSTALL_SUCCESS" = "false" ]; then \
|
|
|
|
|
|
echo "WARNING: Frontend dependencies installation failed after 3 attempts"; \
|
|
|
|
|
|
echo "Continuing without frontend dependencies for CI/CD environment"; \
|
|
|
|
|
|
touch .frontend-deps-failed; \
|
|
|
|
|
|
else \
|
|
|
|
|
|
echo "✓ Frontend dependencies installed and cached"; \
|
|
|
|
|
|
fi; \
|
|
|
|
|
|
else \
|
|
|
|
|
|
echo "No package.json found, skipping frontend dependencies"; \
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# OPTIMIZATION PHASE 3: Now clone full source code (dependencies already cached above)
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
RUN --mount=type=secret,id=ssh_private_key \
|
|
|
|
|
|
echo "=== Cloning Full Source Code (Phase 3: After Dependencies) ===" && \
|
|
|
|
|
|
mkdir -p ~/.ssh && \
|
|
|
|
|
|
cp /run/secrets/ssh_private_key ~/.ssh/id_rsa && \
|
|
|
|
|
|
chmod 600 ~/.ssh/id_rsa && \
|
|
|
|
|
|
echo "Host dogar.darkhelm.org" > ~/.ssh/config && \
|
|
|
|
|
|
echo " Port 2222" >> ~/.ssh/config && \
|
|
|
|
|
|
echo " StrictHostKeyChecking no" >> ~/.ssh/config && \
|
|
|
|
|
|
echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config && \
|
|
|
|
|
|
chmod 600 ~/.ssh/config && \
|
|
|
|
|
|
ssh-keyscan -p 2222 dogar.darkhelm.org >> ~/.ssh/known_hosts 2>/dev/null && \
|
|
|
|
|
|
# Clone full repository (dependencies already installed, this won't bust cache layers)
|
|
|
|
|
|
GIT_SSH_COMMAND="ssh -F ~/.ssh/config" \
|
|
|
|
|
|
git clone --depth 1 --branch main \
|
|
|
|
|
|
ssh://git@dogar.darkhelm.org:2222/DarkHelm.org/plex-playlist.git /tmp/fullrepo && \
|
|
|
|
|
|
if [ -n "$GITHUB_SHA" ]; then \
|
|
|
|
|
|
cd /tmp/fullrepo && git checkout "$GITHUB_SHA" 2>/dev/null || echo "Using main branch HEAD"; \
|
|
|
|
|
|
fi && \
|
2025-11-01 12:45:11 -04:00
|
|
|
|
# Copy source code while preserving installed dependencies
|
2025-11-01 10:47:02 -04:00
|
|
|
|
echo "Copying source code while preserving installed dependencies..." && \
|
2025-11-01 13:03:18 -04:00
|
|
|
|
# Instead of backup/restore, copy selectively to avoid overwriting dependencies
|
|
|
|
|
|
echo "Source files in repo:" && \
|
|
|
|
|
|
ls -la /tmp/fullrepo/ && \
|
|
|
|
|
|
echo "Current workspace state:" && \
|
|
|
|
|
|
find /workspace -name "node_modules" -o -name ".venv" -o -name ".yarn" && \
|
|
|
|
|
|
# Copy source files excluding dependency directories
|
|
|
|
|
|
echo "Copying source files (excluding dependencies)..." && \
|
|
|
|
|
|
# Copy all files and directories except the ones we want to preserve
|
|
|
|
|
|
for item in /tmp/fullrepo/*; do \
|
|
|
|
|
|
basename_item=$(basename "$item"); \
|
|
|
|
|
|
target_path="/workspace/$basename_item"; \
|
|
|
|
|
|
if [ "$basename_item" = "backend" ] && [ -d "/workspace/backend/.venv" ]; then \
|
|
|
|
|
|
echo "Copying backend files while preserving .venv..."; \
|
|
|
|
|
|
# Copy backend files but skip .venv if it exists
|
|
|
|
|
|
find "$item" -mindepth 1 -maxdepth 1 ! -name ".venv" -exec cp -rf {} /workspace/backend/ \;; \
|
2025-11-01 15:24:59 -04:00
|
|
|
|
elif [ "$basename_item" = "frontend" ] && ([ -d "/workspace/frontend/node_modules" ] || [ -f "/workspace/frontend/.pnp.cjs" ]); then \
|
2025-11-01 16:13:30 -04:00
|
|
|
|
echo "Copying frontend files (will regenerate Yarn state after)..."; \
|
|
|
|
|
|
# Copy all frontend files normally - we'll regenerate Yarn state afterward
|
|
|
|
|
|
cp -rf "$item"/* /workspace/frontend/; \
|
2025-11-01 13:03:18 -04:00
|
|
|
|
else \
|
|
|
|
|
|
echo "Copying $basename_item..."; \
|
|
|
|
|
|
cp -rf "$item" /workspace/; \
|
|
|
|
|
|
fi; \
|
|
|
|
|
|
done && \
|
|
|
|
|
|
# Copy hidden files from root (like .gitignore, .dockerignore, etc.)
|
2025-11-01 12:45:11 -04:00
|
|
|
|
cp -rf /tmp/fullrepo/.* /workspace/ 2>/dev/null || true && \
|
2025-11-01 13:03:18 -04:00
|
|
|
|
# Verify dependencies are still there
|
|
|
|
|
|
echo "Final dependency check:" && \
|
|
|
|
|
|
find /workspace -name "node_modules" -o -name ".venv" -o -name ".yarn" && \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
echo "✓ Full source code copied, dependencies preserved" && \
|
|
|
|
|
|
rm -rf /tmp/fullrepo ~/.ssh
|
|
|
|
|
|
|
2025-11-01 16:13:30 -04:00
|
|
|
|
# PHASE 3.5: Regenerate Yarn PnP state after source code update
|
|
|
|
|
|
WORKDIR /workspace/frontend
|
|
|
|
|
|
RUN if [ -f "package.json" ] && [ -f ".pnp.cjs" ]; then \
|
|
|
|
|
|
echo "=== Regenerating Yarn PnP State After Source Code Update ===" && \
|
|
|
|
|
|
echo "Source package.json and installed dependencies may have differences..." && \
|
|
|
|
|
|
yarn install --immutable && \
|
|
|
|
|
|
echo "✓ Yarn PnP state regenerated successfully - tools should now work"; \
|
|
|
|
|
|
else \
|
|
|
|
|
|
echo "ℹ No Yarn PnP setup detected, skipping state regeneration"; \
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# PHASE 4: Install backend package in development mode (requires full source)
|
|
|
|
|
|
WORKDIR /workspace/backend
|
|
|
|
|
|
RUN echo "=== Installing Backend Package in Development Mode ===" && \
|
|
|
|
|
|
uv pip install -e . && \
|
|
|
|
|
|
echo "✓ Backend package installed in development mode"
|
|
|
|
|
|
|
|
|
|
|
|
# PHASE 5: Install pre-commit environments (requires full source with .pre-commit-config.yaml)
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
RUN echo "=== Installing Pre-commit Hook Environments ===" && \
|
|
|
|
|
|
if [ -f ".pre-commit-config.yaml" ]; then \
|
|
|
|
|
|
# Use project's Python environment for pre-commit
|
|
|
|
|
|
cd backend && uv run pre-commit install-hooks && \
|
|
|
|
|
|
echo "✓ Pre-commit hook environments installed successfully"; \
|
2025-10-31 11:25:34 -04:00
|
|
|
|
else \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
echo "No .pre-commit-config.yaml found, skipping hook installation"; \
|
2025-10-30 18:47:47 -04:00
|
|
|
|
fi
|
2025-10-27 08:39:54 -04:00
|
|
|
|
|
2025-11-01 10:47:02 -04:00
|
|
|
|
# PHASE 6: Playwright browsers optimization check (may be pre-installed in base image)
|
|
|
|
|
|
WORKDIR /workspace/frontend
|
2025-10-30 18:47:47 -04:00
|
|
|
|
RUN if [ -f ".frontend-deps-failed" ]; then \
|
2025-10-31 11:25:34 -04:00
|
|
|
|
echo "Frontend dependencies failed - Playwright E2E tests will be skipped"; \
|
2025-11-01 10:47:02 -04:00
|
|
|
|
elif [ -f "package.json" ] && grep -q '@playwright/test' package.json && [ -d "node_modules" ]; then \
|
2025-11-01 00:20:31 -04:00
|
|
|
|
echo "Checking Playwright browser optimization status..." && \
|
|
|
|
|
|
# Check if Playwright CLI is available via yarn (from project dependencies)
|
|
|
|
|
|
if yarn playwright --version >/dev/null 2>&1; then \
|
|
|
|
|
|
echo "✓ Playwright CLI available via yarn" && \
|
|
|
|
|
|
# Check if browsers are pre-installed from base image
|
|
|
|
|
|
if yarn playwright install --dry-run >/dev/null 2>&1; then \
|
|
|
|
|
|
echo "✓ Playwright browsers available from base image optimization"; \
|
|
|
|
|
|
else \
|
|
|
|
|
|
echo "⚠ Playwright browsers not pre-installed - will install on demand in CI"; \
|
|
|
|
|
|
fi; \
|
|
|
|
|
|
else \
|
|
|
|
|
|
echo "⚠ Playwright CLI not available - E2E setup will be handled in CI"; \
|
|
|
|
|
|
fi && \
|
|
|
|
|
|
echo "✓ Playwright environment checked"; \
|
2025-10-30 16:24:21 -04:00
|
|
|
|
else \
|
2025-11-01 00:20:31 -04:00
|
|
|
|
echo "ℹ No Playwright tests configured in this project"; \
|
2025-10-30 16:24:21 -04:00
|
|
|
|
fi
|
|
|
|
|
|
|
2025-10-27 08:39:54 -04:00
|
|
|
|
# Verify all tools are working with the project
|
|
|
|
|
|
RUN cd /workspace/backend && \
|
|
|
|
|
|
echo "=== Backend Tools Verification ===" && \
|
|
|
|
|
|
uv run ruff --version && \
|
|
|
|
|
|
uv run pyright --version && \
|
|
|
|
|
|
uv run darglint --version && \
|
|
|
|
|
|
uv run pytest --version && \
|
|
|
|
|
|
uv run yamllint --version && \
|
|
|
|
|
|
uv run toml-sort --version && \
|
2025-10-30 10:02:17 -04:00
|
|
|
|
uv run xdoctest --version && \
|
|
|
|
|
|
uv run pre-commit --version
|
2025-10-27 08:39:54 -04:00
|
|
|
|
|
|
|
|
|
|
RUN cd /workspace/frontend && \
|
|
|
|
|
|
echo "=== Frontend Tools Verification ===" && \
|
2025-10-30 18:47:47 -04:00
|
|
|
|
if [ -f ".frontend-deps-failed" ]; then \
|
|
|
|
|
|
echo "WARNING: Skipping frontend tool verification due to failed dependencies installation"; \
|
|
|
|
|
|
echo "Frontend CI/CD jobs may be limited in this environment"; \
|
2025-11-01 13:27:56 -04:00
|
|
|
|
elif [ -d "node_modules" ] || [ -f ".pnp.cjs" ]; then \
|
|
|
|
|
|
if [ -f ".pnp.cjs" ]; then \
|
|
|
|
|
|
echo "✓ Yarn PnP dependencies found (.pnp.cjs), verifying tools..."; \
|
|
|
|
|
|
else \
|
|
|
|
|
|
echo "✓ Traditional node_modules found, verifying tools..."; \
|
|
|
|
|
|
fi && \
|
2025-10-29 16:01:39 -04:00
|
|
|
|
yarn eslint --version && \
|
|
|
|
|
|
yarn prettier --version && \
|
|
|
|
|
|
yarn tsc --version && \
|
2025-10-30 18:47:47 -04:00
|
|
|
|
yarn vitest --version && \
|
|
|
|
|
|
echo "✓ All frontend tools verified successfully"; \
|
2025-10-29 16:01:39 -04:00
|
|
|
|
else \
|
2025-11-01 13:27:56 -04:00
|
|
|
|
echo "ERROR: No frontend dependencies found (neither node_modules nor .pnp.cjs)"; \
|
|
|
|
|
|
echo "Available files in frontend:"; \
|
2025-11-01 13:03:18 -04:00
|
|
|
|
ls -la .; \
|
2025-10-29 16:01:39 -04:00
|
|
|
|
exit 1; \
|
|
|
|
|
|
fi
|
2025-10-27 08:39:54 -04:00
|
|
|
|
|
|
|
|
|
|
# Set Python path for backend
|
|
|
|
|
|
ENV PYTHONPATH=/workspace/backend/src:/workspace/backend
|
|
|
|
|
|
|
2025-10-31 11:25:34 -04:00
|
|
|
|
# Make global development tools available in PATH for fallback
|
|
|
|
|
|
ENV PATH="/opt/python-dev-tools/bin:$PATH"
|
|
|
|
|
|
|
2025-10-27 08:39:54 -04:00
|
|
|
|
# Set working directory back to root
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
|
|
|
|
|
|
# Default to bash
|
|
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
|
CMD ["/bin/bash"]
|