Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on docker #328

Open
alimozdemir opened this issue Dec 4, 2024 · 2 comments
Open

Stuck on docker #328

alimozdemir opened this issue Dec 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@alimozdemir
Copy link

🐛 The bug

This module looks very promising thank you for that. For one of my small projects I wanted to use this, just followed the guidelines. Unfortunately, it got stuck on pnpm build on docker

I can't reproduce it on Stackblitz since this is related to docker.

Here is my dockerfile

# syntax=docker/dockerfile:1

ARG NODE_VERSION=20.18.1
ARG PORT=3000

FROM node:${NODE_VERSION}-alpine AS node

ENV PORT=$PORT

COPY / /

RUN npm install -g pm2@latest

RUN npm install -g pnpm

WORKDIR "/"

RUN pnpm install

RUN pnpm build

EXPOSE 80

WORKDIR "/"

CMD pm2-runtime ecosystem.config.cjs

It got stuck on pnpm build and the latest things that stdout prints;

 => [webapp 4/9] RUN npm install -g pm2@latest                                                                                                    4.1s
 => [webapp 5/9] RUN npm install -g pnpm                                                                                                          1.0s
 => [webapp 6/9] RUN pnpm install                                                                                                                31.7s 
 => => # .../[email protected]/node_modules/esbuild postinstall: Done                                                                                     
 => => # .../[email protected]/node_modules/esbuild postinstall: Done                                                                                    
 => => # .../node_modules/vue-demi postinstall: Done                                                                                                  
 => => # > rently-web-uae@ postinstall /                                                                                                              
 => => # > nuxt prepare                                                                                                                               
 => => # [nuxt:tailwindcss] ℹ Using default Tailwind CSS file 
- Operating System: `Darwin`
- Node Version:     `v20.18.1`
- Nuxt Version:     `3.14.1592`
- CLI Version:      `3.16.0`
- Nitro Version:    `-`
- Package Manager:  `[email protected]`
- Builder:          `-`
- User Config:      `default`
- Runtime Modules:  `@nuxtjs/tailwindcss@^6.12.2`, `@nuxt/fonts@^0.10.2`, `@vueuse/nuxt@^12.0.0`, `@nuxt/scripts`
- Build Modules:    `-`

🛠️ To reproduce

Can't do it

🌈 Expected behavior

Complete the build

ℹ️ Additional context

No response

@alimozdemir alimozdemir added the bug Something isn't working label Dec 4, 2024
@harlan-zw
Copy link
Collaborator

Can you make a minimal reproduction? Just docker, nuxt scripts and latest nuxt and a however you're using Nuxt Scripts

I'll try and replicate it from there on my local machine

@alimozdemir
Copy link
Author

Hey @harlan-zw here you go https://github.com/alimozdemir/nuxt-scripts-docker

I also shared my terminal logs in the README.md, you can see in nuxt prepare stage it got stuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants