cd: Add docker builds for dev env

This commit is contained in:
2026-07-23 12:16:37 +05:30
parent 814f216ea7
commit affee4a733
3 changed files with 42 additions and 1 deletions

18
apps/gui/Dockerfile.dev Normal file
View File

@@ -0,0 +1,18 @@
FROM node:22-slim
ENV PNPM_HOME="/pnpm" \
PATH="$PNPM_HOME:$PATH"
RUN corepack enable && corepack prepare pnpm@11.15.1 --activate
WORKDIR /app
# Install native build tools if required by dependencies
RUN apt-get update -qq && \
apt-get install -qq -y --no-install-recommends \
python3 make g++ && \
rm -rf /var/lib/apt/lists/*
# Expose the development port and HMR port if needed
EXPOSE 3000
# We run a shell command or script to handle mounting sync + pnpm install fallback
CMD ["pnpm", "--filter", "@omnia/gui", "dev", "--turbopack"]