From d037db9ffcb51aa2c0ea2ad30926237e603f46e6 Mon Sep 17 00:00:00 2001 From: Xiong Wang Date: Thu, 14 Apr 2022 19:44:51 +0800 Subject: [PATCH 1/2] add Dockerfile --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e70dc0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env +WORKDIR /app +RUN dotnet tool install ChangeDB.ConsoleApp --tool-path . +ENTRYPOINT ["./changedb"] \ No newline at end of file From a05b7bada6ec70be0ede20b986bf35ca42183caa Mon Sep 17 00:00:00 2001 From: Xiong Wang Date: Thu, 14 Apr 2022 20:21:17 +0800 Subject: [PATCH 2/2] support changedb version for docker build --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0e70dc0..16ea02a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env +ARG VERSION=1.0.12 +ENV VERSION ${VERSION} WORKDIR /app -RUN dotnet tool install ChangeDB.ConsoleApp --tool-path . +RUN dotnet tool install ChangeDB.ConsoleApp --tool-path . --version ${VERSION} ENTRYPOINT ["./changedb"] \ No newline at end of file