|
@@ -9,6 +9,7 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build |
|
|
ARG BUILD_CONFIGURATION=Release |
|
|
ARG BUILD_CONFIGURATION=Release |
|
|
WORKDIR /src |
|
|
WORKDIR /src |
|
|
COPY ["NearCardAttendance.TcpServer/NearCardAttendance.TcpServer.csproj", "NearCardAttendance.TcpServer/"] |
|
|
COPY ["NearCardAttendance.TcpServer/NearCardAttendance.TcpServer.csproj", "NearCardAttendance.TcpServer/"] |
|
|
|
|
|
COPY ["NearCardAttendance.Model/NearCardAttendance.Model.csproj", "NearCardAttendance.Model/"] |
|
|
COPY ["NearCardAttendance.Common/NearCardAttendance.Common.csproj", "NearCardAttendance.Common/"] |
|
|
COPY ["NearCardAttendance.Common/NearCardAttendance.Common.csproj", "NearCardAttendance.Common/"] |
|
|
COPY ["NearCardAttendance.Service/NearCardAttendance.Service.csproj", "NearCardAttendance.Service/"] |
|
|
COPY ["NearCardAttendance.Service/NearCardAttendance.Service.csproj", "NearCardAttendance.Service/"] |
|
|
RUN dotnet restore "./NearCardAttendance.TcpServer/./NearCardAttendance.TcpServer.csproj" |
|
|
RUN dotnet restore "./NearCardAttendance.TcpServer/./NearCardAttendance.TcpServer.csproj" |
|
@@ -23,7 +24,6 @@ RUN dotnet publish "./NearCardAttendance.TcpServer.csproj" -c $BUILD_CONFIGURATI |
|
|
FROM base AS final |
|
|
FROM base AS final |
|
|
WORKDIR /app |
|
|
WORKDIR /app |
|
|
COPY --from=publish /app/publish . |
|
|
COPY --from=publish /app/publish . |
|
|
|
|
|
|
|
|
ENV environment=Development |
|
|
ENV environment=Development |
|
|
ENV TimeZone=Asia/Shanghai |
|
|
ENV TimeZone=Asia/Shanghai |
|
|
ENV LANG C.UTF-8 |
|
|
ENV LANG C.UTF-8 |
|
|