title: Blazor WebAssembly can't read environment variables or find files when running in Docker
body: <p>I have a Blazor webassembly project which I have dockerized and I'm trying to read environment variables set in the container on startup.
  If I do the following I am able to run a shell in the container and echo the variable.</p>
  <pre><code>docker run -e DEBUG=false --name blazortest dockerizedclientsideblazor
  </code></pre>
  <p>However if I try to read the environment variable in the application using this command.</p>
  <pre><code>Environment.GetEnvironmentVariable(&quot;DEBUG&quot;)
  </code></pre>
  <p>It returns as null and it's the same for trying to read mounted files.
  Can explain to me why I'm experiencing this?</p>
  <p>My Dockerfile looks like this.</p>
  <pre><code>FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
  WORKDIR /app
  COPY . ./
  RUN ls -la ./
  RUN dotnet publish -c Release -o output
  
  FROM nginx:alpine
  WORKDIR /var/www/web
  COPY --from=build-env /app/output/wwwroot .
  COPY nginx.conf /etc/nginx/nginx.conf
  EXPOSE 80 443
  </code></pre>