This repository was archived by the owner on Sep 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed
LoadBalancerProject-DONT-IMPORT-INTO-UNITY
ServerProject-DONT-IMPORT-INTO-UNITY Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 1
1
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS builder
2
- WORKDIR /lrm
2
+ WORKDIR /lrm-lb
3
3
COPY . .
4
- RUN [\
5
- "dotnet" , "publish" , \
6
- "--output" , "/build/" , \
7
- "--configuration" , "Release" ,\
8
- "--no-self-contained" , \
9
- "." ]
4
+ ARG BUILD_MODE="Release"
5
+ RUN dotnet publish \
6
+ --output /build/ \
7
+ --configuration $BUILD_MODE \
8
+ --no-self-contained .
10
9
11
10
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine
12
11
WORKDIR /lrm-lb
13
12
COPY --from=builder /build/ .
14
13
ENV LRM_LB_CONFIG_PATH="/config/config-load-balancer.json"
15
14
CMD [ "./LRM_LoadBalancer" ]
16
- ENTRYPOINT [ "./LRM_LoadBalancer" ]
15
+ ENTRYPOINT [ "./LRM_LoadBalancer" ]
Original file line number Diff line number Diff line change 1
1
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS builder
2
2
WORKDIR /lrm
3
3
COPY . .
4
- RUN [\
5
- "dotnet" , "publish" , \
6
- "--output" , "/build/" , \
7
- "--configuration" , "Release" ,\
8
- "--no-self-contained" , \
9
- "." ]
4
+ ARG BUILD_MODE="Release"
5
+ RUN dotnet publish \
6
+ --output /build/ \
7
+ --configuration $BUILD_MODE \
8
+ --no-self-contained .
10
9
11
10
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine
12
11
WORKDIR /lrm
13
12
COPY --from=builder /build/ .
14
- COPY ./MultiCompiled.dll .
15
13
ENV LRM_CONFIG_PATH="/config/config.json"
16
14
CMD [ "./LRM" ]
17
15
ENTRYPOINT [ "./LRM" ]
You can’t perform that action at this time.
0 commit comments