(it has been solved)

(it has been solved)

Hi @GuyMight44,

Glad to see you in Github Community Forum!

What do you mean the file here? If you’d like to modify the Dockerfile, before the docker build command, use echo to append the COPY/ADD which can rename the filename.

      - run: |
          echo COPY file1 ./file2 >> Dockerfile    # append the COPY command to Dockerfile
      - name: Build the Docker image
        run: docker build . --file Dockerfile --tag myproject

Thanks

1 Like