mirror of
				https://github.com/jakeswenson/BitBetter.git
				synced 2025-10-31 12:53: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 bin/Debug/netcoreapp2.0/publish/* /bitBetter/ | ||||||
| COPY ./.keys/cert.cert /newLicensing.cer | COPY ./.keys/cert.cert /newLicensing.cer | ||||||
| 
 | 
 | ||||||
| RUN dotnet /bitBetter/bitBetter.dll && \ | RUN set -e; set -x; \ | ||||||
|     echo "modified dll" && \ |     dotnet /bitBetter/bitBetter.dll && \ | ||||||
|     mv /app/Core.dll /app/Core.orig.dll && \ |     mv /app/Core.dll /app/Core.orig.dll && \ | ||||||
|     mv /app/modified.dll /app/Core.dll && \ |     mv /app/modified.dll /app/Core.dll && \ | ||||||
|     echo "replaced dll" && \ |     rm -rf /bitBetter && rm -rf /newLicensing.cer | ||||||
|     rm -rf /bitBetter && rm -rf /newLicensing.cer && \ |  | ||||||
|     echo "cleaned up" |  | ||||||
|  |  | ||||||
|  | @ -3,10 +3,8 @@ FROM bitwarden/identity | ||||||
| COPY bin/Debug/netcoreapp2.0/publish/* /bitBetter/ | COPY bin/Debug/netcoreapp2.0/publish/* /bitBetter/ | ||||||
| COPY ./.keys/cert.cert /newLicensing.cer | COPY ./.keys/cert.cert /newLicensing.cer | ||||||
| 
 | 
 | ||||||
| RUN dotnet /bitBetter/bitBetter.dll && \ | RUN set -e; set -x; \ | ||||||
|     echo "modified dll" && \ |     dotnet /bitBetter/bitBetter.dll && \ | ||||||
|     mv /app/Core.dll /app/Core.orig.dll && \ |     mv /app/Core.dll /app/Core.orig.dll && \ | ||||||
|     mv /app/modified.dll /app/Core.dll && \ |     mv /app/modified.dll /app/Core.dll && \ | ||||||
|     echo "replaced dll" && \ |     rm -rf /bitBetter && rm -rf /newLicensing.cer | ||||||
|     rm -rf /bitBetter && rm -rf /newLicensing.cer && \ |  | ||||||
|     echo "cleaned up" |  | ||||||
|  |  | ||||||
|  | @ -4,7 +4,8 @@ WORKDIR /licenseGen | ||||||
| 
 | 
 | ||||||
| COPY . /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 restore \ | ||||||
| 	&& dotnet publish | 	&& dotnet publish | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user