Config comes from env vars

This commit is contained in:
Robert Marshall 2023-02-16 19:40:45 +00:00
parent bb93afd555
commit 5b987d13c1

View file

@ -5,11 +5,6 @@ RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install -y nodejs RUN apt-get install -y nodejs
RUN chmod +x ./build.sh RUN chmod +x ./build.sh
RUN ./build.sh RUN ./build.sh
RUN sed -i "s/<AuthEndpoint>/${AuthEndpoint}/g" output/appsettings.json
RUN sed -i "s/<AuthApiKey>/${AuthApiKey}/g" output/appsettings.json
RUN sed -i "s/<BlogEndpoint>/${BlogEndpoint}/g" output/appsettings.json
RUN sed -i "s/<GitEndpoint>/${GitEndpoint}/g" output/appsettings.json
RUN sed -i "s/<MailboxEndpoint>/${MailboxEndpoint}/g" output/appsettings.json
FROM mcr.microsoft.com/dotnet/aspnet:7.0 FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app WORKDIR /app