Alpine Docker images no longer have tzdata package in 3.0 #3658
Replies: 6 comments
-
We deployed our first .net core microservice to our UAT environment 3 days ago. It took me few hours to find out that |
Beta Was this translation helpful? Give feedback.
-
Hello Sorry for commenting on closed post. WORKDIR /app Copy everything else and buildCOPY . ./ Build runtime imageFROM mcr.microsoft.com/dotnet/core/aspnet:3.1-bionic #COPY --from=build-env /app/out . Ubuntu Script file : set noninteractive installationexport DEBIAN_FRONTEND=noninteractive set your timezoneln -fs /usr/share/zoneinfo/America/New_York /etc/localtime dot net core code where i am using |
Beta Was this translation helpful? Give feedback.
-
@tushi0407 - Have you verified |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply @mthalman , Actually I am very new to docker. So could you please help me how I can check that? What needs to be change on docker file? |
Beta Was this translation helpful? Give feedback.
-
Thanks @mthalman ..it is resolved now.I was doing the same mistake . I have changed the place where i was installing tzdata.Now i am installing it under run time image.I have placed |
Beta Was this translation helpful? Give feedback.
-
Alpine Docker images no longer have tzdata package in 3.0
Beginning with the 3.0 release, the
tzdata
package has been removed from all Alpine Docker images.Details
This package was removed because it wasn't required for the main set of scenarios and to have consistency between the runtime-deps images across all Linux distros. This package is still installed in the 2.x images for Alpine so this will be something to be aware of when migrating from 2.x to 3.0.
You may be impacted by this if you use any of the Alpine images for 3.0 and your code has a dependency on the
tzdata
package, such as using theSystem.TimeZoneInfo
API. In that case, you'll need to update your Dockerfile to explicitly install the package:Beta Was this translation helpful? Give feedback.
All reactions