Dockerfile
You can easily deploy your Dockerfile using the
ale
Dockerfile template.
ale
presets and templates use minimal libraries to optimize resource usage.
If your application requires additional libraries not included in our default presets, such as Windows or Chrome libraries, you need to use the Dockerfile template. Please refer to our example code for creating your custom Dockerfile.
Select Template and Repository
On the dashboard, click or
⌘ + K
to open the deployment modal. Select the Dockerfile template, Then choose a GitHub repository from the dropdown or input a Git repository URL in the Git URL tab.
Configuration and Deployment
Basic Settings
-
Environment variables(ENV): Environment variables passed to containers at runtime
-
Build arguments(ARG): Build-time variables used during Docker image construction
-
Port: Container port mapping configuration (corresponds to Docker’s -p or —publish flag)
-
Health Check: endpoint used to verify container health status
-
Start commands: Commands executed when the container starts
More Options
-
Dockerfile text: Enter the complete contents of the Dockerfile
-
Build Labels(LABEL): Custom metadata for your Docker image (e.g., version, description)
-
uid: User ID for executing processes within the container (default: 1000)
-
gid: Group ID for process ownership within the container (default: 1000)
-
Update strategy
- Rolling Update: Deploy new version incrementally while maintaining service availability. Requires sufficient node resources
- Recreate: Stop all instances before deploying new version. Results in service downtime
-
Shell: Specify the shell for container runtime execution (sh, bash, zsh, etc.)
Resource and Deployment
-
Resource Type: Select between On-demand or Spot instance types
-
CPU: Maximum vCPU resource for the service. Minimum vCPU means 0.1 vCPU
-
Memory: Maximum memory size your service can use
-
Replica: Number of service replicas for high availability and load balancing
-
Deploy: Click
Deploy
If deployment fails due to resource limitations, see the Space and Resource Management page to add resources to your space.
Logs & Terminal
Click the icon in the service card or service page to check deployment/runtime logs or access the terminal.
Metrics
You can view service metrics in the Metrics tab of the service page.
Update
When you update your code or modify resource settings, click
Deploy
at the bottom of the service settings page to apply these changes with a new deployment.
To set up automated deployments using GitHub Actions, see the GitHub Actions page.
Rollback
To restore your service to a previous version, navigate to the deployment history tab in the service page.
Check the commit messages in the deployment history to ensure you’re rolling back to the intended version.