mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-23 12:32:49 +05:30
18 lines
555 B
Docker
18 lines
555 B
Docker
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"] |