I’m trying to deploy it with a Dockerfile but it keeps saying Failed due to unhealthy allocations
. SvelteKit is a pure Node app once it’s npm run build
. How do I get this up and running?
FROM node:latest AS builder
WORKDIR /app
COPY . .
RUN npm ci
ARG PUBLIC_GOOGLE_OAUTH_ID="..."
ARG PUBLIC_FULLSTORY_ID="..."
ARG DATABASE_URL="data/app.db"
RUN npm run build
FROM node:latest AS runner
WORKDIR /app
COPY --from=builder /app/package*.json ./
RUN npm ci --production --ignore-scripts
COPY --from=builder /app/build ./
EXPOSE 3000
CMD ["node", "./index.js"]