3. Sort and push your Docker file
Someone in your team will have to code your Docker file. This should only take about ten minutes as it’s fairly straightforward. But you’ll need to test this with your game binary, which can take some time to get right.
Your Dockerfile should contain either ENTRYPOINT or something similar that the user you’ve created will launch. Make sure everything is correct, otherwise it’ll cause issues when starting the container.
Here’s a code block you can use as a template. It’s a basic Dockerfile that will work for most situations.
This base image should do the trick. But if you need something more specific or advanced, it might be better to create the container from scratch.
Depending on the networking method you pick in the next step, you might need to change your Dockerfile. For now, here are a couple of examples:
Now that everything is packaged together as an image, push it to Dockerhub. This is a good time to test if everything works by using our sandbox environment.
Why hasn’t the server been updated? It might just need some time. Keep in mind, a 5GB image takes up to three minutes for the server to download and extract. So give it a moment or two.