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