build: install pnpm with corepack on docker build (#13926)
* build: install pnpm with corepack on build * docs(changelog): Dockerコンテナの立ち上げ時に`pnpm`のインストールで固まることがある問題
This commit is contained in:
		
							parent
							
								
									9368eb3038
								
							
						
					
					
						commit
						b8b4dc5038
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -82,6 +82,10 @@ RUN apt-get update \
 | 
			
		|||
USER misskey
 | 
			
		||||
WORKDIR /misskey
 | 
			
		||||
 | 
			
		||||
# add package.json to add pnpm
 | 
			
		||||
COPY --chown=misskey:misskey ./package.json ./package.json
 | 
			
		||||
RUN corepack install
 | 
			
		||||
 | 
			
		||||
COPY --chown=misskey:misskey --from=target-builder /misskey/node_modules ./node_modules
 | 
			
		||||
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/backend/node_modules ./packages/backend/node_modules
 | 
			
		||||
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-js/node_modules ./packages/misskey-js/node_modules
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue