You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Unter https://aka.ms/customizecontainer erfahren Sie, wie Sie Ihren Debugcontainer anpassen und wie Visual Studio dieses Dockerfile verwendet, um Ihre Images für ein schnelleres Debuggen zu erstellen.
1
+
#Learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging at https://aka.ms/customizecontainer
2
2
3
-
#Diese ARGs ermöglichen den Austausch der Basis, die zum Erstellen des endgültigen Images beim Debuggen von VS verwendet wird.
3
+
#These ARGs allow switching the base used to create the final image when debugging from VS.
4
4
ARG LAUNCHING_FROM_VS
5
-
#Hiermit wird das Basisimage für "final" festgelegt, jedoch nur, wenn LAUNCHING_FROM_VS definiert wurde.
5
+
#This sets the base image for 'final', but only if LAUNCHING_FROM_VS is defined.
#Diese Stufe wird verwendet, wenn sie von VS im Schnellmodus ausgeführt wird (Standardeinstellung für Debugkonfiguration).
9
-
FROM mcr.microsoft.com/dotnet/runtime:9.0 AS base
8
+
#This stage is used when running from VS in Fast mode (Default for Debug configuration).
9
+
FROM mcr.microsoft.com/dotnet/runtime:10.0 AS base
10
10
USER $APP_UID
11
11
WORKDIR /app
12
12
13
13
14
-
#Diese Stufe wird zum Erstellen des Dienstprojekts verwendet.
15
-
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
16
-
#Installieren Sie clang/zlib1g-dev-Abhängigkeiten für die Veröffentlichung unter nativ
14
+
#This stage is used to build the service project.
15
+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
16
+
#Install clang/zlib1g-dev dependencies for native AOT publishing
17
17
RUN apt-get update \
18
18
&& apt-get install -y --no-install-recommends \
19
19
clang zlib1g-dev
@@ -27,22 +27,22 @@ COPY . .
27
27
WORKDIR"/src/KepwareSync.Service"
28
28
RUN dotnet build "./Kepware.SyncService.csproj" -c $BUILD_CONFIGURATION -o /app/build
29
29
30
-
#Diese Stufe wird verwendet, um das Dienstprojekt zu veröffentlichen, das in die letzte Phase kopiert werden soll.
30
+
#This stage is used to publish the service project to be copied to the final stage.
31
31
FROM build AS publish
32
32
ARG BUILD_CONFIGURATION=Release
33
33
RUN dotnet publish "./Kepware.SyncService.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=true
34
34
35
-
#Diese Stufe wird als Basis für die letzte Stufe verwendet, wenn sie von VS gestartet wird, um das Debuggen im regulären Modus zu unterstützen (Standardwert, wenn die Debugkonfiguration nicht verwendet wird).
35
+
#This stage is used as the base for the final stage when launched from VS to support debugging in regular mode (Default when not using Debug configuration).
36
36
FROM base AS aotdebug
37
37
USER root
38
-
#Installieren Sie GDB, um natives Debuggen zu unterstützen.
38
+
#Install GDB to support native debugging.
39
39
RUN apt-get update \
40
40
&& apt-get install -y --no-install-recommends \
41
41
gdb
42
42
USER app
43
43
44
-
#Diese Stufe wird in der Produktion oder bei Ausführung von VS im regulären Modus verwendet (Standard, wenn die Debugkonfiguration nicht verwendet wird).
45
-
FROM ${FINAL_BASE_IMAGE:-mcr.microsoft.com/dotnet/runtime-deps:9.0} AS final
44
+
#This stage is used in production or when running from VS in regular mode (Default when not using Debug configuration).
45
+
FROM ${FINAL_BASE_IMAGE:-mcr.microsoft.com/dotnet/runtime-deps:10.0} AS final
0 commit comments