Testing Debug Build Mode

This commit is contained in:
Derek S 2021-04-08 05:11:11 -05:00 committed by GitHub
parent 544e949d5f
commit 28d157bffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
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 . .
ARG BUILD_MODE="Release" ARG BUILD_MODE="Debug"
RUN dotnet publish \ RUN dotnet publish \
--output /build/ \ --output /build/ \
--configuration $BUILD_MODE \ --configuration $BUILD_MODE \
@ -12,4 +12,4 @@ WORKDIR /lrm
COPY --from=builder /build/ . COPY --from=builder /build/ .
ENV LRM_CONFIG_PATH="/config/config.json" ENV LRM_CONFIG_PATH="/config/config.json"
CMD [ "./LRM" ] CMD [ "./LRM" ]
ENTRYPOINT [ "./LRM" ] ENTRYPOINT [ "./LRM" ]