-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathDockerfile-linux
More file actions
34 lines (24 loc) · 922 Bytes
/
Dockerfile-linux
File metadata and controls
34 lines (24 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base
WORKDIR /app
# Install Petabridge.Cmd client so it can be invoked remotely via
# Docker or K8s 'exec` commands
RUN dotnet tool install --global pbm
# RUN pbm help
COPY ./bin/Release/net7.0/publish/ /app
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS app
WORKDIR /app
COPY --from=base /app /app
# copy .NET Core global tool
COPY --from=base /root/.dotnet /root/.dotnet/
# Needed because https://stackoverflow.com/questions/51977474/install-dotnet-core-tool-dockerfile
ENV PATH="${PATH}:/root/.dotnet/tools"
# should be a comma-delimited list
ENV CLUSTER_SEEDS "[]"
ENV CLUSTER_IP ""
ENV CLUSTER_PORT "4053"
ENV AKKA__CLUSTER__SPLIT_BRAIN_RESOLVER__ACTIVE_STRATEGY "keep-majority"
ENV AKKA__REMOTE__DOT-NETTY__TCP__BATCHING__ENABLED "false"
# 9110 - Petabridge.Cmd
# 4053 - Akka.Cluster
EXPOSE 9110 4053
CMD ["dotnet", "Lighthouse.dll"]