File tree Expand file tree Collapse file tree
src/HyperTensionBot.Server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ WORKDIR /app
2121COPY --from=publish /app/publish .
2222COPY --from=build /src/ModelML/trainingData.tsv /app/ModelML/trainingData.tsv
2323
24- RUN apt-get update && apt-get install -y fonts-dejavu
24+ RUN apt-get update && apt-get install -y fonts-dejavu gettext
25+
26+ COPY appsettings.json /app/appsettings.json
27+
28+ RUN envsubst < /app/appsettings.json > /app/appsettings.replaced.json
29+
30+ RUN cat /app/appsettings.replaced.json
31+
32+ RUN mv /app/appsettings.replaced.json /app/appsettings.json
2533
2634ENTRYPOINT ["dotnet" , "HyperTensionBot.Server.dll" ]
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ services:
2121 environment :
2222 - TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
2323 - MONGODB_CONNECTION_STRING=${MONGODB_CONNECTION_STRING}
24- entrypoint : ["/bin/bash", "-c", "/app/update_config .sh && exec dotnet HyperTensionBot.dll"]
24+ entrypoint : ["/bin/bash", "-c", "/app/generate_appsettings .sh && exec dotnet HyperTensionBot.dll"]
2525
2626volumes :
2727 mmagnini :
You can’t perform that action at this time.
0 commit comments