-
Notifications
You must be signed in to change notification settings - Fork 1.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alpine Docker images no longer have tzdata package in 3.0 #1366
Comments
We deployed our first .net core microservice to our UAT environment 3 days ago. It took me few hours to find out that |
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 |
@tushi0407 - Have you verified |
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? |
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 |
This package is not included in Apline linux by default: dotnet/dotnet-docker#1366
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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:The text was updated successfully, but these errors were encountered: