-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Copy
and Add
don't work as expected.
#284
Comments
Some additional context. .Add($"../{InitDbScriptName}", $"startup/") Of course without the random folder in And then the generated dockerfile looks like this: FROM mcr.microsoft.com/mssql/server:2022-latest AS base
WORKDIR /
ADD startup/
EXPOSE 1433 |
Ok, I figured this one out, there's a method to set the working directory, which I thought was the same as setting the working directory of the dockerfile. |
neat, youre more than welcome to do a PR! Cheers, |
I might at some point. However, I put the project where I'm using this on pause and I'm not the biggest docker wizard so I'll need to review that project to add to yours at some point. |
I'm trying to build my own image, and I want to copy some files onto it.
When I use an absolute path, the COPY and ADD commands break.
When I try to generate the path and set copy the files there first, the
${RND}
part of the template don't match.I'm currently trying this:
The
CopyInitScript
is incorrectly named, it generates a script at runtime.How do I get the correct temp folder so my dockerfile and resources can be placed next to each other?
The text was updated successfully, but these errors were encountered: