forked from Eauldane/SnowcloakServer
Initial
This commit is contained in:
32
Docker/build/Dockerfile-MareSynchronosAuthService
Normal file
32
Docker/build/Dockerfile-MareSynchronosAuthService
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 as BUILD
|
||||
|
||||
COPY MareAPI /server/MareAPI
|
||||
COPY MareSynchronosServer/MareSynchronosShared /server/MareSynchronosServer/MareSynchronosShared
|
||||
COPY MareSynchronosServer/MareSynchronosAuthService /server/MareSynchronosServer/MareSynchronosAuthService
|
||||
|
||||
WORKDIR /server/MareSynchronosServer/MareSynchronosAuthService/
|
||||
|
||||
RUN dotnet publish \
|
||||
--configuration=Debug \
|
||||
--os=linux \
|
||||
--output=/build \
|
||||
MareSynchronosAuthService.csproj
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--group \
|
||||
--no-create-home \
|
||||
--quiet \
|
||||
--system \
|
||||
mare
|
||||
|
||||
COPY --from=BUILD /build /opt/MareSynchronosAuthService
|
||||
RUN chown -R mare:mare /opt/MareSynchronosAuthService
|
||||
RUN apt-get update; apt-get install curl -y
|
||||
|
||||
USER mare:mare
|
||||
WORKDIR /opt/MareSynchronosAuthService
|
||||
|
||||
CMD ["./MareSynchronosAuthService"]
|
30
Docker/build/Dockerfile-MareSynchronosAuthService-git
Normal file
30
Docker/build/Dockerfile-MareSynchronosAuthService-git
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 as BUILD
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/Penumbra-Sync/server
|
||||
|
||||
WORKDIR /server/MareSynchronosServer/MareSynchronosAuthService/
|
||||
|
||||
RUN dotnet publish \
|
||||
--configuration=Release \
|
||||
--os=linux \
|
||||
--output=/MareSynchronosAuthService \
|
||||
MareSynchronosAuthService.csproj
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--group \
|
||||
--no-create-home \
|
||||
--quiet \
|
||||
--system \
|
||||
mare
|
||||
|
||||
COPY --from=BUILD /MareSynchronosAuthService /opt/MareSynchronosAuthService
|
||||
RUN chown -R mare:mare /opt/MareSynchronosAuthService
|
||||
RUN apt-get update; apt-get install curl -y
|
||||
|
||||
USER mare:mare
|
||||
WORKDIR /opt/MareSynchronosAuthService
|
||||
|
||||
CMD ["./MareSynchronosAuthService"]
|
32
Docker/build/Dockerfile-MareSynchronosServer
Normal file
32
Docker/build/Dockerfile-MareSynchronosServer
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 as BUILD
|
||||
|
||||
COPY MareAPI /server/MareAPI
|
||||
COPY MareSynchronosServer/MareSynchronosShared /server/MareSynchronosServer/MareSynchronosShared
|
||||
COPY MareSynchronosServer/MareSynchronosServer /server/MareSynchronosServer/MareSynchronosServer
|
||||
|
||||
WORKDIR /server/MareSynchronosServer/MareSynchronosServer/
|
||||
|
||||
RUN dotnet publish \
|
||||
--configuration=Release \
|
||||
--os=linux \
|
||||
--output=/build \
|
||||
MareSynchronosServer.csproj
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--group \
|
||||
--no-create-home \
|
||||
--quiet \
|
||||
--system \
|
||||
mare
|
||||
|
||||
COPY --from=BUILD /build /opt/MareSynchronosServer
|
||||
RUN chown -R mare:mare /opt/MareSynchronosServer
|
||||
RUN apt-get update; apt-get install curl -y
|
||||
|
||||
USER mare:mare
|
||||
WORKDIR /opt/MareSynchronosServer
|
||||
|
||||
CMD ["./MareSynchronosServer"]
|
30
Docker/build/Dockerfile-MareSynchronosServer-git
Normal file
30
Docker/build/Dockerfile-MareSynchronosServer-git
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 as BUILD
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/Penumbra-Sync/server
|
||||
|
||||
WORKDIR /server/MareSynchronosServer/MareSynchronosServer/
|
||||
|
||||
RUN dotnet publish \
|
||||
--configuration=Release \
|
||||
--os=linux \
|
||||
--output=/MareSynchronosServer \
|
||||
MareSynchronosServer.csproj
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--group \
|
||||
--no-create-home \
|
||||
--quiet \
|
||||
--system \
|
||||
mare
|
||||
|
||||
COPY --from=BUILD /MareSynchronosServer /opt/MareSynchronosServer
|
||||
RUN chown -R mare:mare /opt/MareSynchronosServer
|
||||
RUN apt-get update; apt-get install curl -y
|
||||
|
||||
USER mare:mare
|
||||
WORKDIR /opt/MareSynchronosServer
|
||||
|
||||
CMD ["./MareSynchronosServer"]
|
32
Docker/build/Dockerfile-MareSynchronosServices
Normal file
32
Docker/build/Dockerfile-MareSynchronosServices
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.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:8.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
|
||||
RUN apt-get update; apt-get install curl -y
|
||||
|
||||
USER mare:mare
|
||||
WORKDIR /opt/MareSynchronosServices
|
||||
|
||||
CMD ["./MareSynchronosServices"]
|
30
Docker/build/Dockerfile-MareSynchronosServices-git
Normal file
30
Docker/build/Dockerfile-MareSynchronosServices-git
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 as BUILD
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/Penumbra-Sync/server
|
||||
|
||||
WORKDIR /server/MareSynchronosServer/MareSynchronosServices/
|
||||
|
||||
RUN dotnet publish \
|
||||
--configuration=Release \
|
||||
--os=linux \
|
||||
--output=/MareSynchronosServices \
|
||||
MareSynchronosServices.csproj
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--group \
|
||||
--no-create-home \
|
||||
--quiet \
|
||||
--system \
|
||||
mare
|
||||
|
||||
COPY --from=BUILD /MareSynchronosServices /opt/MareSynchronosServices
|
||||
RUN chown -R mare:mare /opt/MareSynchronosServices
|
||||
RUN apt-get update; apt-get install curl -y
|
||||
|
||||
USER mare:mare
|
||||
WORKDIR /opt/MareSynchronosServices
|
||||
|
||||
CMD ["./MareSynchronosServices"]
|
32
Docker/build/Dockerfile-MareSynchronosStaticFilesServer
Normal file
32
Docker/build/Dockerfile-MareSynchronosStaticFilesServer
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 as BUILD
|
||||
|
||||
COPY MareAPI /server/MareAPI
|
||||
COPY MareSynchronosServer/MareSynchronosShared /server/MareSynchronosServer/MareSynchronosShared
|
||||
COPY MareSynchronosServer/MareSynchronosStaticFilesServer /server/MareSynchronosServer/MareSynchronosStaticFilesServer
|
||||
|
||||
WORKDIR /server/MareSynchronosServer/MareSynchronosStaticFilesServer/
|
||||
|
||||
RUN dotnet publish \
|
||||
--configuration=Release \
|
||||
--os=linux \
|
||||
--output=/build \
|
||||
MareSynchronosStaticFilesServer.csproj
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--group \
|
||||
--no-create-home \
|
||||
--quiet \
|
||||
--system \
|
||||
mare
|
||||
|
||||
COPY --from=BUILD /build /opt/MareSynchronosStaticFilesServer
|
||||
RUN chown -R mare:mare /opt/MareSynchronosStaticFilesServer
|
||||
RUN apt-get update; apt-get install curl -y
|
||||
|
||||
USER mare:mare
|
||||
WORKDIR /opt/MareSynchronosStaticFilesServer
|
||||
|
||||
CMD ["./MareSynchronosStaticFilesServer"]
|
30
Docker/build/Dockerfile-MareSynchronosStaticFilesServer-git
Normal file
30
Docker/build/Dockerfile-MareSynchronosStaticFilesServer-git
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 as BUILD
|
||||
|
||||
RUN git clone --recurse-submodules https://github.com/Penumbra-Sync/server
|
||||
|
||||
WORKDIR /server/MareSynchronosServer/MareSynchronosStaticFilesServer/
|
||||
|
||||
RUN dotnet publish \
|
||||
--configuration=Release \
|
||||
--os=linux \
|
||||
--output=/MareSynchronosStaticFilesServer \
|
||||
MareSynchronosStaticFilesServer.csproj
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--group \
|
||||
--no-create-home \
|
||||
--quiet \
|
||||
--system \
|
||||
mare
|
||||
|
||||
COPY --from=BUILD /MareSynchronosStaticFilesServer /opt/MareSynchronosStaticFilesServer
|
||||
RUN chown -R mare:mare /opt/MareSynchronosStaticFilesServer
|
||||
RUN apt-get update; apt-get install curl -y
|
||||
|
||||
USER mare:mare
|
||||
WORKDIR /opt/MareSynchronosStaticFilesServer
|
||||
|
||||
CMD ["./MareSynchronosStaticFilesServer"]
|
2
Docker/build/linux-git/docker-build-authservice.sh
Normal file
2
Docker/build/linux-git/docker-build-authservice.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
docker build -t darkarchon/mare-synchronos-authservice:latest . -f ../Dockerfile-MareSynchronosAuthService-git --no-cache --pull --force-rm
|
2
Docker/build/linux-git/docker-build-server.sh
Normal file
2
Docker/build/linux-git/docker-build-server.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
docker build -t darkarchon/mare-synchronos-server:latest . -f ../Dockerfile-MareSynchronosServer-git --no-cache --pull --force-rm
|
2
Docker/build/linux-git/docker-build-services.sh
Normal file
2
Docker/build/linux-git/docker-build-services.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
docker build -t darkarchon/mare-synchronos-services:latest . -f ../Dockerfile-MareSynchronosServices-git --no-cache --pull --force-rm
|
2
Docker/build/linux-git/docker-build-staticfilesserver.sh
Normal file
2
Docker/build/linux-git/docker-build-staticfilesserver.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
docker build -t darkarchon/mare-synchronos-staticfilesserver:latest . -f ../Dockerfile-MareSynchronosStaticFilesServer-git --no-cache --pull --force-rm
|
5
Docker/build/linux-git/docker-build.sh
Normal file
5
Docker/build/linux-git/docker-build.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
./docker-build-server.sh
|
||||
./docker-build-authservice.sh
|
||||
./docker-build-services.sh
|
||||
./docker-build-staticfilesserver.sh
|
2
Docker/build/linux-local/docker-build-authservice.sh
Normal file
2
Docker/build/linux-local/docker-build-authservice.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
docker build -t darkarchon/mare-synchronos-authservice:latest . -f ../Dockerfile-MareSynchronosAuthService --no-cache --pull --force-rm
|
4
Docker/build/linux-local/docker-build-server.sh
Normal file
4
Docker/build/linux-local/docker-build-server.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
cd ../../../
|
||||
docker build -t darkarchon/mare-synchronos-server:latest . -f ../Dockerfile-MareSynchronosServer --no-cache --pull --force-rm
|
||||
cd Docker/build/linux-local
|
4
Docker/build/linux-local/docker-build-services.sh
Normal file
4
Docker/build/linux-local/docker-build-services.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
cd ../../../
|
||||
docker build -t darkarchon/mare-synchronos-services:latest . -f ../Dockerfile-MareSynchronosServices --no-cache --pull --force-rm
|
||||
cd Docker/build/linux-local
|
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
cd ../../../
|
||||
docker build -t darkarchon/mare-synchronos-staticfilesserver:latest . -f ../Dockerfile-MareSynchronosStaticFilesServer --no-cache --pull --force-rm
|
||||
cd Docker/build/linux-local
|
5
Docker/build/linux-local/docker-build.sh
Normal file
5
Docker/build/linux-local/docker-build.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
./docker-build-server.sh
|
||||
./docker-build-authservice.sh
|
||||
./docker-build-services.sh
|
||||
./docker-build-staticfilesserver.sh
|
3
Docker/build/windows-git/docker-build-authservice.bat
Normal file
3
Docker/build/windows-git/docker-build-authservice.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
docker build -t darkarchon/mare-synchronos-authservice:latest . -f ..\Dockerfile-MareSynchronosAuthService-git --no-cache --pull --force-rm
|
2
Docker/build/windows-git/docker-build-server.bat
Normal file
2
Docker/build/windows-git/docker-build-server.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
docker build -t darkarchon/mare-synchronos-server:latest . -f ..\Dockerfile-MareSynchronosServer-git --no-cache --pull --force-rm
|
3
Docker/build/windows-git/docker-build-services.bat
Normal file
3
Docker/build/windows-git/docker-build-services.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
docker build -t darkarchon/mare-synchronos-services:latest . -f ..\Dockerfile-MareSynchronosServices-git --no-cache --pull --force-rm
|
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
docker build -t darkarchon/mare-synchronos-staticfilesserver:latest . -f ..\Dockerfile-MareSynchronosStaticFilesServer-git --no-cache --pull --force-rm
|
6
Docker/build/windows-git/docker-build.bat
Normal file
6
Docker/build/windows-git/docker-build.bat
Normal file
@@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
|
||||
call docker-build-server.bat
|
||||
call docker-build-authservice.bat
|
||||
call docker-build-services.bat
|
||||
call docker-build-staticfilesserver.bat
|
4
Docker/build/windows-local/docker-build-authservice.bat
Normal file
4
Docker/build/windows-local/docker-build-authservice.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
cd ..\..\..\
|
||||
docker build -t darkarchon/mare-synchronos-authservice:latest . -f Docker\build\Dockerfile-MareSynchronosAuthService --no-cache --pull --force-rm
|
||||
cd Docker\build\windows-local
|
4
Docker/build/windows-local/docker-build-server.bat
Normal file
4
Docker/build/windows-local/docker-build-server.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
cd ..\..\..\
|
||||
docker build -t darkarchon/mare-synchronos-server:latest . -f Docker\build\Dockerfile-MareSynchronosServer --no-cache --pull --force-rm
|
||||
cd Docker\build\windows-local
|
4
Docker/build/windows-local/docker-build-services.bat
Normal file
4
Docker/build/windows-local/docker-build-services.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
cd ..\..\..\
|
||||
docker build -t darkarchon/mare-synchronos-services:latest . -f Docker\build\Dockerfile-MareSynchronosServices --no-cache --pull --force-rm
|
||||
cd Docker\build\windows-local
|
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
cd ..\..\..\
|
||||
docker build -t darkarchon/mare-synchronos-staticfilesserver:latest . -f Docker\build\Dockerfile-MareSynchronosStaticFilesServer --no-cache --pull --force-rm
|
||||
cd Docker\build\windows-local
|
6
Docker/build/windows-local/docker-build.bat
Normal file
6
Docker/build/windows-local/docker-build.bat
Normal file
@@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
|
||||
call docker-build-server.bat
|
||||
call docker-build-authservice.bat
|
||||
call docker-build-services.bat
|
||||
call docker-build-staticfilesserver.bat
|
Reference in New Issue
Block a user