You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] > [stage0 2/8] COPY C:/Users/edmisml/scalaprojects/cici/certs/toKeyStore /certs:
[error] ------
[error] failed to compute cache key: "/C:/Users/edmisml/scalaprojects/cici/certs/toKeyStore" not found: not found
I thought that by inserting the COPY command after the initial FROM command (stage0) that I would indeed be able to copy files from the host machine but this does not appear to be the case.
Docker can only access files in its build context. So you will have to copy any additional files to Docker / stagingDirectory, otherwise Docker won't see them.
Is there a programmatic way to do this? It looks like by default the "stage" directory is <module>/target/docker/stage.
As another approach, I tried to add a mapping tupe using Docker / fileMappings but that did not seem to have any effect on the Dockerfile nor did it add anything to the staging directory.
Expected behaviour
I want to copy a directory from the host machine to the container using a command like
within my sbt.
Actual behaviour
when I
docker:publishLocal
it errors out atI thought that by inserting the COPY command after the initial FROM command (stage0) that I would indeed be able to copy files from the host machine but this does not appear to be the case.
Can someone help me out here?
Here's the out of
show dockerCommands
:Information
rpm --version
)The text was updated successfully, but these errors were encountered: