copy a file with different name in destination directory using COPY in Dockerfile

You can simply do it like COPY test.txt /dest/test_renamed.txt without a trailing /.

If you put a trailing / like COPY test.txt /dest/test_2/, it will copy the test.txt file (with the same name, of course) into the directory at /dest/test_2/.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)