mirror of
				https://github.com/jakeswenson/BitBetter.git
				synced 2025-10-31 04:43:25 +00:00 
			
		
		
		
	Replace echo in Dockerfiles by set -x and set -e
This commit is contained in:
		
							parent
							
								
									08639f1e32
								
							
						
					
					
						commit
						7691022f31
					
				|  | @ -3,10 +3,8 @@ FROM bitwarden/api | |||
| COPY bin/Debug/netcoreapp2.0/publish/* /bitBetter/ | ||||
| COPY ./.keys/cert.cert /newLicensing.cer | ||||
| 
 | ||||
| RUN dotnet /bitBetter/bitBetter.dll && \ | ||||
|     echo "modified dll" && \ | ||||
| RUN set -e; set -x; \ | ||||
|     dotnet /bitBetter/bitBetter.dll && \ | ||||
|     mv /app/Core.dll /app/Core.orig.dll && \ | ||||
|     mv /app/modified.dll /app/Core.dll && \ | ||||
|     echo "replaced dll" && \ | ||||
|     rm -rf /bitBetter && rm -rf /newLicensing.cer && \ | ||||
|     echo "cleaned up" | ||||
|     rm -rf /bitBetter && rm -rf /newLicensing.cer | ||||
|  |  | |||
|  | @ -3,10 +3,8 @@ FROM bitwarden/identity | |||
| COPY bin/Debug/netcoreapp2.0/publish/* /bitBetter/ | ||||
| COPY ./.keys/cert.cert /newLicensing.cer | ||||
| 
 | ||||
| RUN dotnet /bitBetter/bitBetter.dll && \ | ||||
|     echo "modified dll" && \ | ||||
| RUN set -e; set -x; \ | ||||
|     dotnet /bitBetter/bitBetter.dll && \ | ||||
|     mv /app/Core.dll /app/Core.orig.dll && \ | ||||
|     mv /app/modified.dll /app/Core.dll && \ | ||||
|     echo "replaced dll" && \ | ||||
|     rm -rf /bitBetter && rm -rf /newLicensing.cer && \ | ||||
|     echo "cleaned up" | ||||
|     rm -rf /bitBetter && rm -rf /newLicensing.cer | ||||
|  |  | |||
|  | @ -4,7 +4,8 @@ WORKDIR /licenseGen | |||
| 
 | ||||
| COPY . /licenseGen | ||||
| 
 | ||||
| RUN dotnet add package Newtonsoft.Json --version 12.0.1 \ | ||||
| RUN set -e; set -x; \ | ||||
| 	dotnet add package Newtonsoft.Json --version 12.0.1 \ | ||||
| 	&& dotnet restore \ | ||||
| 	&& dotnet publish | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user