-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 975 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG UV_VERSION=latest
ARG DEBIAN_VERSION=bookworm
# Use UV package as a base layer
FROM ghcr.io/astral-sh/uv:$UV_VERSION AS uv
# Use Debian-based VS Code Dev Container as base
FROM mcr.microsoft.com/vscode/devcontainers/base:$DEBIAN_VERSION
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
# Install dependencies and Node.js 20+ from NodeSource
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3-numpy poppler-utils build-essential python3-dev curl \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& curl -fsSL https://aka.ms/install-azd.sh | bash \
&& ln -sf /usr/bin/python3 /usr/bin/python
# Copy UV binaries
COPY --from=uv --chown=vscode: /uv /uvx /bin/
# Install global NPM packages
RUN npm install -g tslint-to-eslint-config typescript react-app-rewired pnpm@10.28.2
# Set default shell
SHELL ["/bin/bash", "-c"]