Skip to content

Commit

Permalink
Merge pull request #272 from rdagumampan/issue-234-docker-volume
Browse files Browse the repository at this point in the history
Added new docker files for yuniql/cli image to support volume mapping
Supports all known verbs from yuniql cli
  • Loading branch information
rdagumampan authored May 22, 2022
2 parents a0a4234 + f7c81e8 commit e390590
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions yuniql-distribution/docker/dockerfile.multi-stage-linux-x64-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env

WORKDIR /code

# copy all files and directories from root src folder
COPY . .

WORKDIR /code/yuniql-cli
RUN dotnet publish -c release -r linux-x64 /p:publishtrimmed=true -o ./app

#https://github.com/dotnet/dotnet-docker/issues/1332
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime-env

WORKDIR app
COPY --from=build-env /code/yuniql-cli/app .

ENV YUNIQL_WORKSPACE /data

ENTRYPOINT ["dotnet", "yuniql.dll"]
CMD ["additional-arguments-captured-from-docker-run"]
20 changes: 20 additions & 0 deletions yuniql-distribution/docker/dockerfile.multi-stage-win-x64-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env

WORKDIR /code

# copy all files and directories from root src folder
COPY . .

WORKDIR /code/yuniql-cli
RUN dotnet publish -c release -r win-x64 /p:publishtrimmed=true -o ./app

#https://github.com/dotnet/dotnet-docker/issues/1332
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime-env

WORKDIR app
COPY --from=build-env /code/yuniql-cli/app .

ENV YUNIQL_WORKSPACE /data

ENTRYPOINT ["dotnet", "yuniql.dll"]
CMD ["additional-arguments-captured-from-docker-run"]

0 comments on commit e390590

Please sign in to comment.