mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: use new build process (#3757)
## About the changes This adapts the docker creation to the latest package.json changes https://github.com/Unleash/unleash/pull/3736
This commit is contained in:
		
							parent
							
								
									64e3609867
								
							
						
					
					
						commit
						2f9da976e4
					
				
							
								
								
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							| @ -1,13 +1,5 @@ | ||||
| ARG NODE_VERSION=18-alpine | ||||
| 
 | ||||
| FROM --platform=$BUILDPLATFORM node:$NODE_VERSION as frontend_builder | ||||
| 
 | ||||
| WORKDIR /unleash/frontend | ||||
| 
 | ||||
| COPY . /unleash | ||||
| 
 | ||||
| RUN yarn install --frozen-lockfile | ||||
| 
 | ||||
| FROM node:$NODE_VERSION as builder | ||||
| 
 | ||||
| WORKDIR /unleash | ||||
| @ -16,9 +8,9 @@ COPY . /unleash | ||||
| 
 | ||||
| RUN yarn config set network-timeout 300000 | ||||
| 
 | ||||
| RUN yarn install --frozen-lockfile --ignore-scripts  && yarn run build && yarn run local:package | ||||
| RUN yarn install --frozen-lockfile && yarn run build && yarn run local:package | ||||
| 
 | ||||
| COPY --from=frontend_builder /unleash/frontend/build /unleash/build/frontend/build | ||||
| RUN mkdir /unleash/build/frontend && cp -r /unleash/frontend/build /unleash/build/frontend/build | ||||
| 
 | ||||
| WORKDIR /unleash/docker | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user