deployment - What is the best practice to move my dockerfile and related files to the server? (private files) -


I have a dockerfile, a .sh file, a nginx config file and private key but on a clean server on the server How to add those files for the first time (before creating a docker image before filing)?

  • Do I need FTP and put those files there?
  • Can I pull my project?

I'm not using the digital ocean, but I still need a key or I can use a password < Li> And I do not like a personalized Paid Docker repo

You use physical server or VPS ? If you can do SSH on your server, then add files in many ways

1. The easiest way to do sftp (You can use some sftp client to do this or use ftp command line tools ), Only your SSI login permission is required, and you can upload these files to your files. home directory.
2. The CCP, used in other ways, is like the command:
scp YOUR_FILE Username @ ipaddressORhostname: / home / username /
This only allowed your SSH login Required only

The git or ftp server is not a good way to push files to files.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -