FROM node:24.22 # Create and use /app WORKDIR /app # Update and install system dependencies RUN apt-get update -y && apt-get upgrade -y && \ apt-get install -y apt-utils apt-transport-https ca-certificates # Enable Yarn via Corepack (bundled with Node) RUN corepack enable # Copy package manifests from the monorepo root COPY package.json yarn.lock ./ COPY packages/public/package.json ./packages/public/package.json COPY packages/shared-server/package.json ./packages/shared-server/package.json COPY worker/package.json ./worker/package.json # Install root dependencies RUN yarn install # Copy the rest of the source code from the monorepo root COPY packages/public/ ./packages/public/ COPY packages/shared-server/ ./packages/shared-server/ COPY worker/ ./worker/ # Set environment ENV NODE_ENV=production # Build public WORKDIR /app/packages/public RUN yarn build # Build shared-server WORKDIR /app/packages/shared-server RUN yarn build # Build graphql-server WORKDIR /app/worker RUN yarn build # Run the server CMD [ "npm", "run", "refresh-hosting-provider-access-tokens"]