r/Nuxt•
IOChidi

Help with NUXT dockerfile

FROM node:20-alpine

WORKDIR /web
        
ENV NUXT_PUBLIC_FRONTEND_DOMAIN=${NUXT_PUBLIC_FRONTEND_DOMAIN}
        
COPY . .
        
RUN npm ci
        
VOLUME [ "/web/.output/public" ]
    
CMD [ "npm", "run", "generate" ]

The plan for this is to bind to the volume and then have caddy serve the folder. The problem is that I get the output ERROR EBUSY: resource busy or locked, rmdir '/web/.output/public'.

Weirdly I get this just before the nuxt prerendering executes. Can anyone help me out with this.

Posted Jun 27, 2024, 3:16 PM UTC

23
Loading comments…