 9eb5967935
			
		
	
	9eb5967935
	
	
	
		
			
			* rework server responsibilities add remote configuration * start metrics only when compiled as not debug * add some more logging to discord bot * fixes of some casts * make metrics port configurable, minor fixes * add docker bullshit * md formatting * adjustments to docker stuff * fix docker json files, fix some stuff in discord bot, add /useradd for Discord bot * adjust docker configs and fix sharded.bat * fixes for logs, cache file provider repeat trying to open filestream Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			851 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			851 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| FROM mcr.microsoft.com/dotnet/sdk:7.0 as BUILD
 | |
| 
 | |
| COPY MareAPI /server/MareAPI
 | |
| COPY MareSynchronosServer/MareSynchronosShared /server/MareSynchronosServer/MareSynchronosShared
 | |
| COPY MareSynchronosServer/MareSynchronosServices /server/MareSynchronosServer/MareSynchronosServices
 | |
| 
 | |
| WORKDIR /server/MareSynchronosServer/MareSynchronosServices/
 | |
| 
 | |
| RUN dotnet publish \
 | |
|         --configuration=Release \
 | |
|         --os=linux \
 | |
|         --output=/build \
 | |
|         MareSynchronosServices.csproj
 | |
| 
 | |
| FROM mcr.microsoft.com/dotnet/aspnet:7.0
 | |
| 
 | |
| RUN adduser \
 | |
|         --disabled-password \
 | |
|         --group \
 | |
|         --no-create-home \
 | |
|         --quiet \
 | |
|         --system \
 | |
|         mare
 | |
| 
 | |
| COPY --from=BUILD /build /opt/MareSynchronosServices
 | |
| RUN chown -R mare:mare /opt/MareSynchronosServices
 | |
| 
 | |
| USER mare:mare
 | |
| WORKDIR /opt/MareSynchronosServices
 | |
| 
 | |
| CMD ["./MareSynchronosServices"]
 |