Vite based project failing to deploy

Help me with Node Vite

# --- Build stage ---
FROM node:20-alpine AS builder

WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:20-alpine AS runner

WORKDIR /app

COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
COPY --from=builder /app/vite.config.js ./

EXPOSE 3000

# Listen on all IPv6 (and IPv4) addresses
CMD ["npx", "vite", "preview", "--host", "::", "--port", "3000"]


I have an issue with the deployment. Checking builder https://lemurs-usher-brantford.andasy.dev/ availabilty
==> Verifying app config…
→ Verified app config
Retrieving app organization builder… this is what is sayiing

Hello @abbatera,

Can you provide the following so that I can diagnose the issue with your app?

  1. What port is your app listening to?
  2. Is that the same port that is configured in ‘andasy.hcl’?
  3. Can you provide logs of your app instance by running ‘andasy logs’

Hi,

Thank you for the response. To clarify - my app has never successfully deployed.
All deployment attempts fail during the BUILD stage with this error:

“Error build/push image: error building image remotely: stream read error:
stream ID 3; INTERNAL_ERROR; received from peer”
“no space left on device”

The builder (lemurs-usher-brantford.andasy.dev) appears to have disk space issues.

To answer your questions:

  1. Port: 3000 (configured in backend/server.js)
  2. andasy.hcl port: 3000 (matches)
  3. Logs: No app instance exists yet - deployment fails at build stage

Builder error logs show the disk space error during npm install.

Can you please check the builder’s disk space or assign a different builder?

App: safebox (Blueprint ID: exs-d4fl5rrdeem-73ba62e0)

Our builders have limited disk capacity. If your project is too large to build on them, you can either build locally using Docker or run your build through GitHub Actions. Instructions for using GitHub Actions are available here: Github Deploy Action