Merge branch 'main' of https://github.com/Derek-R-S/Light-Reflective-Mirror into main
This commit is contained in:
commit
544e949d5f
3 changed files with 12 additions and 15 deletions
|
|
@ -1,12 +1,11 @@
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS builder
|
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS builder
|
||||||
WORKDIR /lrm
|
WORKDIR /lrm-lb
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN [\
|
ARG BUILD_MODE="Release"
|
||||||
"dotnet", "publish", \
|
RUN dotnet publish \
|
||||||
"--output", "/build/", \
|
--output /build/ \
|
||||||
"--configuration", "Release",\
|
--configuration $BUILD_MODE \
|
||||||
"--no-self-contained", \
|
--no-self-contained .
|
||||||
"." ]
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine
|
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine
|
||||||
WORKDIR /lrm-lb
|
WORKDIR /lrm-lb
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,15 @@
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS builder
|
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS builder
|
||||||
WORKDIR /lrm
|
WORKDIR /lrm
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN [\
|
ARG BUILD_MODE="Release"
|
||||||
"dotnet", "publish", \
|
RUN dotnet publish \
|
||||||
"--output", "/build/", \
|
--output /build/ \
|
||||||
"--configuration", "Release",\
|
--configuration $BUILD_MODE \
|
||||||
"--no-self-contained", \
|
--no-self-contained .
|
||||||
"." ]
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine
|
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine
|
||||||
WORKDIR /lrm
|
WORKDIR /lrm
|
||||||
COPY --from=builder /build/ .
|
COPY --from=builder /build/ .
|
||||||
COPY ./MultiCompiled.dll .
|
|
||||||
ENV LRM_CONFIG_PATH="/config/config.json"
|
ENV LRM_CONFIG_PATH="/config/config.json"
|
||||||
CMD [ "./LRM" ]
|
CMD [ "./LRM" ]
|
||||||
ENTRYPOINT [ "./LRM" ]
|
ENTRYPOINT [ "./LRM" ]
|
||||||
Binary file not shown.
Loading…
Reference in a new issue