-
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.
use envsubst to automatically replace env variables in the config file
- Loading branch information
Mick Vermeulen
authored and
Mick Vermeulen
committed
Sep 12, 2020
1 parent
8637ca2
commit 871731f
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
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
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,8 +1,8 @@ | ||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine | ||
ENV PATH $PATH:/root/.dotnet/tools | ||
|
||
COPY Uchu . | ||
COPY config.xml . | ||
COPY Uchu config.default.xml .env ./ | ||
|
||
RUN apk add gettext | ||
RUN set -o allexport && source .env && set +o allexport && envsubst < config.default.xml > config.xml | ||
RUN dotnet build | ||
|
||
ENTRYPOINT ["dotnet", "Uchu.Master/bin/Debug/netcoreapp3.1/Uchu.Master.dll"] |
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