diff --git a/Stat.Itok.Func.Worker/Dockerfile b/Stat.Itok.Func.Worker/Dockerfile index b2d2dd5..c07be39 100644 --- a/Stat.Itok.Func.Worker/Dockerfile +++ b/Stat.Itok.Func.Worker/Dockerfile @@ -16,21 +16,21 @@ RUN cd /src/dotnet-function-app/Stat.Itok.Func.Worker && \ FROM mcr.microsoft.com/azure-functions/dotnet:4 ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ AzureFunctionsJobHost__Logging__Console__IsEnabled=true -# -#COPY ./_misc /home/ -# -#ENV CORECLR_ENABLE_PROFILING=1 -#ENV CORECLR_PROFILER={BD1A650D-AC5D-4896-B64F-D6FA25D6B26A} -#ENV CORECLR_PROFILER_PATH=/home/Pyroscope.Profiler.Native.so -#ENV LD_PRELOAD=/home/Pyroscope.Linux.ApiWrapper.x64.so - - -#ENV PYROSCOPE_APPLICATION_NAME=stat.itok.worker -#ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/ -#ENV PYROSCOPE_LOG_LEVEL=debug -#ENV PYROSCOPE_PROFILING_ENABLED=1 -#ENV PYROSCOPE_PROFILING_ALLOCATION_ENABLED=true -#ENV PYROSCOPE_PROFILING_CONTENTION_ENABLED=true -#ENV PYROSCOPE_PROFILING_EXCEPTION_ENABLED=true + +COPY ./_misc /home/ + +ENV CORECLR_ENABLE_PROFILING=1 +ENV CORECLR_PROFILER={BD1A650D-AC5D-4896-B64F-D6FA25D6B26A} +ENV CORECLR_PROFILER_PATH=/home/Pyroscope.Profiler.Native.so +ENV LD_PRELOAD=/home/Pyroscope.Linux.ApiWrapper.x64.so + + +ENV PYROSCOPE_APPLICATION_NAME=stat.itok.worker +ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/ +ENV PYROSCOPE_LOG_LEVEL=debug +ENV PYROSCOPE_PROFILING_ENABLED=1 +ENV PYROSCOPE_PROFILING_ALLOCATION_ENABLED=true +ENV PYROSCOPE_PROFILING_CONTENTION_ENABLED=true +ENV PYROSCOPE_PROFILING_EXCEPTION_ENABLED=true COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"] \ No newline at end of file