Dockerfile29 lines · 769 chars FROM ubuntu:jammy-20260210.1
# Non-interactive environment
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies and Node.js 18, then pnpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g pnpm@8.9.2 \
&& rm -rf /var/lib/apt/lists/*
# Increase Node.js memory for build
ENV NODE_OPTIONS=--max_old_space_size=4096
# Working directory
WORKDIR /workspace
# Copy source
COPY . .
# Install dependencies and build from source
RUN pnpm install
RUN pnpm run build
# Default command
CMD ["bash", "-lc", "echo Build complete; tail -f /dev/null"]