Prerequisites
Before you start, ensure you have:- Miget Account – Register at Miget.
- Git installed – You need Git to push your code to Miget.
- A Dockerfile – Your application should have a Dockerfile in the repository root.
Create a Miget App
- In the Miget dashboard, click New to create a new app.
- Choose your preferred settings and give your app a name.
Configure the Builder
- Navigate to Settings → Builders.
- Set the Builder to Dockerfile.
Prepare Your Dockerfile
Ensure your Dockerfile is in the root of your repository. Here’s a simple example for a Node.js application:Best Practices
- Use multi-stage builds to reduce image size
- Specify exact versions for base images
- Use
.dockerignoreto exclude unnecessary files - Run as non-root user for security
Deploy Your Application
- Go to the Deploy tab in your app dashboard.
- Copy the Git remote URL provided.
- Add the remote and push your code:
Replace
<your-workspace> and <your-app-name> with your actual Miget workspace and app name.Environment Variables
If your application requires environment variables:- Go to Settings → Config Vars.
- Click Edit Config Vars.
- Add your environment variables.
Viewing Logs
Monitor your application’s build and runtime logs:- Go to the Logs tab in your app dashboard.
- View build logs during deployment.
- View runtime logs once the app is running.

