cs-codex-dist-tests/Tools/BiblioTech/docker/Dockerfile

27 lines
526 B
Docker
Raw Permalink Normal View History

# Variables
2024-04-01 08:05:17 +00:00
ARG BUILDER=mcr.microsoft.com/dotnet/sdk:7.0
ARG IMAGE=${BUILDER}
ARG APP_HOME=/app
2023-10-18 09:01:24 +00:00
2024-04-01 08:05:17 +00:00
# Build
FROM ${IMAGE} AS builder
ARG APP_HOME
WORKDIR ${APP_HOME}
2023-10-18 09:01:24 +00:00
COPY ./Tools/BiblioTech ./Tools/BiblioTech
2023-10-18 11:48:15 +00:00
COPY ./Framework ./Framework
COPY ./ProjectPlugins ./ProjectPlugins
2024-04-01 08:05:17 +00:00
RUN dotnet restore Tools/BiblioTech
RUN dotnet publish Tools/BiblioTech -c Release -o out
2024-04-01 08:05:17 +00:00
# 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