forked from Eauldane/SnowcloakServer
Initial
This commit is contained in:
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"]
|
Reference in New Issue
Block a user