Commit to update node version and npm version in Dockerfile docker-compose.yml
This commit is contained in:
		
							parent
							
								
									5ca9c997b7
								
							
						
					
					
						commit
						8bd43a4db4
					
				| @ -1,6 +1,6 @@ | |||||||
| #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. | #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. | ||||||
| 
 | 
 | ||||||
| ARG NODE_IMAGE=node:12.0 | ARG NODE_IMAGE=node:16-bullseye | ||||||
| FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base | FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base | ||||||
| WORKDIR /app | WORKDIR /app | ||||||
| EXPOSE 80 | EXPOSE 80 | ||||||
| @ -9,7 +9,7 @@ FROM ${NODE_IMAGE} as node-build | |||||||
| WORKDIR /web/src | WORKDIR /web/src | ||||||
| COPY Web/WebSPA/Client/package.json . | COPY Web/WebSPA/Client/package.json . | ||||||
| COPY Web/WebSPA/Client/package-lock.json . | COPY Web/WebSPA/Client/package-lock.json . | ||||||
| RUN npm install -g npm@6 | RUN npm install -g npm@9.5.1 | ||||||
| RUN npm install | RUN npm install | ||||||
| COPY Web/WebSPA/Client . | COPY Web/WebSPA/Client . | ||||||
| RUN npm run build:prod | RUN npm run build:prod | ||||||
|  | |||||||
| @ -135,7 +135,7 @@ services: | |||||||
|       context: . |       context: . | ||||||
|       dockerfile: Web/WebSPA/Dockerfile |       dockerfile: Web/WebSPA/Dockerfile | ||||||
|       args: |       args: | ||||||
|         NODE_IMAGE: ${NODE_IMAGE:-node:12.0} |         NODE_IMAGE: ${NODE_IMAGE:-node:19-bullseye} | ||||||
|     depends_on: |     depends_on: | ||||||
|       - webshoppingagg |       - webshoppingagg | ||||||
|       - webshoppingapigw |       - webshoppingapigw | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user