-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
38 lines (32 loc) · 1.24 KB
/
Copy pathdockerfile
File metadata and controls
38 lines (32 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
COPY --from=build-env /app/out .
# COPY --from=ghcr.io/datadog/datadog-lambda-extension/serverless-init:1.2.8-rc0 / /app/
COPY --from=datadog/serverless-init:1 /datadog-init /app/datadog-init
# COPY ./dotnet.sh .
# RUN chmod u+x dotnet.sh && ./dotnet.sh
# COPY --from=ghcr.io/datadog/dd-trace-dotnet/dd-lib-dotnet-init:cf2c5942f74f22306fa2178390848f568c4bdf3a /datadog-init/monitoring-home/ /dd_tracer/dotnet/
# COPY --from=joeyzhao2018/test-serverless-init:v2 /datadog-init /app/datadog-init
# COPY --from=datadog/dd-lib-dotnet-init /datadog-init/monitoring-home/ /dd_tracer/dotnet/
# below this is for local testing
# COPY datadog-agent /app/datadog-init
# ENV DD_HISTOGRAM_AGGREGATES="avg median max count"
# ENV DD_HISTOGREM_PERCENTILES="0.95"
# ENV DD_SERVICE=joey-aas-container-dotnet
ENV DD_ENV=joeyback
ENV DD_VERSION=1
# ENV DD_LOG_LEVEL=trace
ENV DD_SITE=datadoghq.com
ENV DD_TRACE_ENABLED=true
ENV DD_CUSTOM_METRICS_ENABLED=true
# ENV DD_SERVICE=joeydotnet
ENTRYPOINT ["/app/datadog-init"]
CMD ["dotnet", "MyFirstAzureWebApp.dll"]