Skip to content

Commit

Permalink
add uchu cli to the Uchu docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
MickVermeulen committed Dec 28, 2020
1 parent e803645 commit f355c50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Uchu
Submodule Uchu updated from a23b5b to e85c70
7 changes: 6 additions & 1 deletion Uchu.Dockerfile
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"]

0 comments on commit f355c50

Please sign in to comment.