Access files in a docker image
I am completely defeated.
All im trying to do is access a file with type = content and output = preserver newest in docker
this is my dockerfile
I tried all kinds of different combinations and debug logs for about 10 hours
I cant find any combination that works. I just want to access this file. I can see its in the docker image.
With the debug logs im getting the correct path, its just not there if I do File.Exists. If I check locally or in prod within the terminal of the image, its there.
this is in my csproj
3 Replies
What path is the template file located at in your docker container? And what path is generated by
var templatePath = Path.Combine(currentDirectory, "Infra", "EmailTemplates", "PasswordResetEmail.cshtml");
?Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
im using it with fluentemail, so its not in my actual code
that path returns "/app/Infra..."
which is where it is in the image
i made it work with embeddedResource, but it feels like giving up