11# Snippy Functions – Dev Container image
2- FROM mcr.microsoft.com/vscode/ devcontainers/universal:latest
2+ FROM mcr.microsoft.com/devcontainers/python:3.11
33
4- # ──────────────────────────────────────────────────────────────
5- # 1 – First‑run welcome notice
6- COPY first-run-notice.txt /tmp/staging/
7- RUN sudo mv -f /tmp/staging/first-run-notice.txt \
8- /usr/local/etc/vscode-dev-containers/ \
9- && sudo rm -rf /tmp/staging
4+ # Install system dependencies
5+ RUN apt-get update \
6+ && apt-get install -y curl gnupg2 build-essential \
7+ && rm -rf /var/lib/apt/lists/*
108
11- # ──────────────────────────────────────────────────────────────
12- # 2 – PowerShell 7.x
13- RUN sudo apt-get update \
14- && sudo apt-get install -y wget apt-transport-https software-properties-common \
15- && wget -q https://packages.microsoft.com/config/ubuntu/$(. /etc/os-release && echo $VERSION_ID)/packages-microsoft-prod.deb \
16- && sudo dpkg -i packages-microsoft-prod.deb \
17- && sudo apt-get update \
18- && sudo apt-get install -y powershell \
19- && sudo apt-get clean \
20- && rm -rf /var/lib/apt/lists/*
9+ # Install Azure Functions Core Tools v4
10+ RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - \
11+ && apt-get install -y nodejs \
12+ && npm install -g azure-functions-core-tools@4 --unsafe-perm \
13+ && apt-get clean \
14+ && rm -rf /var/lib/apt/lists/*
2115
22- # ──────────────────────────────────────────────────────────────
23- # 3 – Azure Functions Core Tools v4
24- # Using npm ensures the latest build and works on any distro.
25- RUN npm install -g azure-functions-core-tools@4 --unsafe-perm
26-
27- # ──────────────────────────────────────────────────────────────
28- # 4 – Azure Developer CLI
16+ # Install Azure Developer CLI (azd)
2917RUN curl -fsSL https://aka.ms/install-azd.sh | bash
3018
31- # ──────────────────────────────────────────────────────────────
32- # 5 – Mechanical‑Markdown (quick‑start doc validation)
33- RUN pip install --no-cache-dir mechanical-markdown
19+ RUN azd version
20+
21+ # Install uv (Python package manager)
22+ RUN pip install --no-cache-dir uv
23+
24+ # Optionally copy welcome notice
25+ COPY first-run-notice.txt /usr/local/etc/first-run-notice.txt
26+
27+ WORKDIR /workspaces/app
0 commit comments