include tzdata to avoid time zone issues

This commit is contained in:
2025-12-16 17:44:46 -05:00
parent 5a509226bc
commit 15ffda9be9

View File

@@ -1,4 +1,10 @@
FROM mcr.microsoft.com/dotnet/runtime:10.0 AS base FROM mcr.microsoft.com/dotnet/runtime:10.0 AS base
# Install timezone data so .NET can resolve local time zones
RUN apt-get update \
&& apt-get install -y --no-install-recommends tzdata \
&& rm -rf /var/lib/apt/lists/*
USER 1000 USER 1000
WORKDIR /app WORKDIR /app
@@ -8,7 +14,6 @@ WORKDIR /src
COPY ["FtpThing.csproj", "./"] COPY ["FtpThing.csproj", "./"]
RUN dotnet restore "FtpThing.csproj" RUN dotnet restore "FtpThing.csproj"
COPY . . COPY . .
WORKDIR "/src/"
RUN dotnet build "./FtpThing.csproj" -c $BUILD_CONFIGURATION -o /app/build RUN dotnet build "./FtpThing.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish FROM build AS publish