Container file system management

I’ve had to resort to asking a question because for days I’ve been trying to figure out how I can move my existing website to my Docker container that is basically Nginx used as a reverse proxy.

I’ve tried copy commands and such… exhausting all the info from my days of internet searches. I am new to Docker as one might be able to deduce.

I’m using Odroid XU4 and Arm 32 architecture.
Moving forward I want to use something like Webmin or VNC or Filezilla to admin my website content, files, etc. .
Thanks =^.^=

Well, basically you create a “Dockerfile”. Here you specify an Nginx base image (for ARM-64) and then “COPY” your necessary files accordingly.
Something like:

FROM arm64v8/nginx:latest
COPY nginx.conf /etc/nginx/nginx.conf
COPY myHTMLFiles /var/myHTMLFiles
CMD [“nginx”, “-g”, “daemon off;”]

… build it:

docker build -t myNginx .

And afterwards you run your container:

docker run -d -p 80:80 -p 443:443 myNginx:1

This config will expose Port 80 & 443 to the host, so the nginx will be reachable through the host’s IP