I’m sorry if this is a repeat or very newbish. This must be simple and I’m just overlooking something.
I’ve built an app. It required a package, libwebsockets-dev, that had to be installed using apt-get install. So I have those on my system. The make file puts my app in /usr/local/sbin, it puts the app config file somewhere else, and also creates some data and log folders. Anyway, everything builds and executes properly on my host machine.
So now I want to get my app into my Docker image. I understand the COPY command works from the current context. But is the current context the only place I can copy files from? Neither application binary, nor anything else associated with it is in my work folder.
So how do I copy files that are not in my current context into the Docker image? Or do I have to copy them into the current context before starting the docker build? Or do I have to pull all the sources into the Docker image and build them there? Or am I missing some critical packaging step where I need to somehow bundle my application and its dependencies and pass it over to Docker somehow?
I have the rest of my Dockerfile doing exactly what it’s supposed to do. I just can’t figure out how to move my application into the image.
Advice?