-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add uchu cli to the Uchu docker container
- Loading branch information
1 parent
e803645
commit f355c50
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
Submodule Uchu
updated
from a23b5b to e85c70
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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine | ||
COPY Uchu config.default.xml .env cert.pfx* ./ | ||
|
||
RUN apk update && apk add --no-cache gettext && apk add --no-cache curl | ||
RUN apk update && apk add --no-cache gettext curl python3 py3-pip | ||
RUN pip install uchu-cli | ||
|
||
RUN set -o allexport && source .env && set +o allexport && envsubst < config.default.xml > config.xml | ||
RUN dotnet build --configuration Release | ||
|
||
# Adds the uchu cli as a top level command | ||
ENV ENV="/root/.ashrc" | ||
RUN echo "alias cli=\"python3 -m uchu-cli\"" > "$ENV" | ||
|
||
ENTRYPOINT ["dotnet", "Uchu.Master/bin/Release/netcoreapp3.1/Uchu.Master.dll"] |