diff --git a/Uchu b/Uchu index a23b5b1..e85c703 160000 --- a/Uchu +++ b/Uchu @@ -1 +1 @@ -Subproject commit a23b5b1bcb779fbb4ebe92b81b225b6ab76ef509 +Subproject commit e85c703180cab6b515a0445d5172e4f246354555 diff --git a/Uchu.Dockerfile b/Uchu.Dockerfile index c4bfc67..ddae7b8 100644 --- a/Uchu.Dockerfile +++ b/Uchu.Dockerfile @@ -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"] \ No newline at end of file