Merge branch 'master' into feature/bot-upgrade
This commit is contained in:
commit
8c64352acf
|
@ -1,14 +1,26 @@
|
||||||
# Variables
|
# Variables
|
||||||
ARG IMAGE=mcr.microsoft.com/dotnet/sdk:7.0
|
ARG BUILDER=mcr.microsoft.com/dotnet/sdk:7.0
|
||||||
|
ARG IMAGE=${BUILDER}
|
||||||
ARG APP_HOME=/app
|
ARG APP_HOME=/app
|
||||||
|
|
||||||
# Create
|
|
||||||
FROM ${IMAGE}
|
# Build
|
||||||
|
FROM ${IMAGE} AS builder
|
||||||
ARG APP_HOME
|
ARG APP_HOME
|
||||||
|
|
||||||
WORKDIR ${APP_HOME}
|
WORKDIR ${APP_HOME}
|
||||||
COPY ./Tools/BiblioTech ./Tools/BiblioTech
|
COPY ./Tools/BiblioTech ./Tools/BiblioTech
|
||||||
COPY ./Framework ./Framework
|
COPY ./Framework ./Framework
|
||||||
COPY ./ProjectPlugins ./ProjectPlugins
|
COPY ./ProjectPlugins ./ProjectPlugins
|
||||||
CMD ["dotnet", "run", "--project", "Tools/BiblioTech"]
|
RUN dotnet restore Tools/BiblioTech
|
||||||
|
RUN dotnet publish Tools/BiblioTech -c Release -o out
|
||||||
|
|
||||||
|
|
||||||
|
# Create
|
||||||
|
FROM ${IMAGE}
|
||||||
|
ARG APP_HOME
|
||||||
|
ENV APP_HOME=${APP_HOME}
|
||||||
|
|
||||||
|
WORKDIR ${APP_HOME}
|
||||||
|
COPY --from=builder ${APP_HOME}/out .
|
||||||
|
CMD dotnet ${APP_HOME}/BiblioTech.dll
|
||||||
|
|
|
@ -1,13 +1,26 @@
|
||||||
# Variables
|
# Variables
|
||||||
ARG IMAGE=mcr.microsoft.com/dotnet/sdk:7.0
|
ARG BUILDER=mcr.microsoft.com/dotnet/sdk:7.0
|
||||||
|
ARG IMAGE=${BUILDER}
|
||||||
ARG APP_HOME=/app
|
ARG APP_HOME=/app
|
||||||
|
|
||||||
# Create
|
|
||||||
FROM ${IMAGE}
|
# Build
|
||||||
|
FROM ${IMAGE} AS builder
|
||||||
ARG APP_HOME
|
ARG APP_HOME
|
||||||
|
|
||||||
WORKDIR ${APP_HOME}
|
WORKDIR ${APP_HOME}
|
||||||
COPY ./Tools/TestNetRewarder ./Tools/TestNetRewarder
|
COPY ./Tools/TestNetRewarder ./Tools/TestNetRewarder
|
||||||
COPY ./Framework ./Framework
|
COPY ./Framework ./Framework
|
||||||
COPY ./ProjectPlugins ./ProjectPlugins
|
COPY ./ProjectPlugins ./ProjectPlugins
|
||||||
CMD ["dotnet", "run", "--project", "Tools/TestNetRewarder"]
|
RUN dotnet restore Tools/TestNetRewarder
|
||||||
|
RUN dotnet publish Tools/TestNetRewarder -c Release -o out
|
||||||
|
|
||||||
|
|
||||||
|
# Create
|
||||||
|
FROM ${IMAGE}
|
||||||
|
ARG APP_HOME
|
||||||
|
ENV APP_HOME=${APP_HOME}
|
||||||
|
|
||||||
|
WORKDIR ${APP_HOME}
|
||||||
|
COPY --from=builder ${APP_HOME}/out .
|
||||||
|
CMD dotnet ${APP_HOME}/TestNetRewarder.dll
|
||||||
|
|
Loading…
Reference in New Issue