Skip to content

Commit c997793

Browse files
committed
fix: minors
1 parent 0b8ff43 commit c997793

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/HyperTensionBot.Server/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ WORKDIR /app
2121
COPY --from=publish /app/publish .
2222
COPY --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

2634
ENTRYPOINT ["dotnet", "HyperTensionBot.Server.dll"]

src/HyperTensionBot.Server/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2626
volumes:
2727
mmagnini:

0 commit comments

Comments
 (0)