-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from rdagumampan/issue-234-docker-volume
Added new docker files for yuniql/cli image to support volume mapping Supports all known verbs from yuniql cli
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
yuniql-distribution/docker/dockerfile.multi-stage-linux-x64-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
20
yuniql-distribution/docker/dockerfile.multi-stage-win-x64-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |