A collection of Dockerfile templates for different programming languages and frameworks.
docker-templates/
βββ README.md # Project documentation
βββ CONTRIBUTING.md # Contribution guidelines
βββ LICENSE # MIT License
βββ .gitignore # Git ignore rules
βββ languages/ # Language-specific Dockerfile templates
β βββ java/ # Java microservices template
βββ stacks/ # Stack-specific Dockerfile templates
βββ anvil-evm/ # Anvil EVM development environment
| Template | Description | Base Image | Features |
|---|---|---|---|
| Java | Java microservices template | maven:3.8.4-openjdk-11-slim |
Multi-stage build, health checks, non-root user, Spring Boot support, build metadata tracking |
| More coming soon... |
| Template | Description | Base Image | Features |
|---|---|---|---|
| Anvil EVM | Ethereum development environment | foundry:latest |
Local and forked network support, resource limits, health checks, persistent volumes, configurable logging |
You can download any template using curl. Here are some examples:
# Download the Java template files
curl -O https://raw.githubusercontent.com/hperezrodal/docker-templates/main/languages/java/Dockerfile \
-O https://raw.githubusercontent.com/hperezrodal/docker-templates/main/languages/java/docker-entrypoint.sh
# Make the entrypoint script executable
chmod +x docker-entrypoint.sh# Download the Anvil EVM files
curl -O https://raw.githubusercontent.com/hperezrodal/docker-templates/main/stacks/anvil-evm/Dockerfile \
-O https://raw.githubusercontent.com/hperezrodal/docker-templates/main/stacks/anvil-evm/docker-compose.yml \
-O https://raw.githubusercontent.com/hperezrodal/docker-templates/main/stacks/anvil-evm/docker-entrypoint.sh \
-O https://raw.githubusercontent.com/hperezrodal/docker-templates/main/stacks/anvil-evm/.env.example
# Make the entrypoint script executable
chmod +x docker-entrypoint.shContributions are always welcome! Please read the contribution guidelines first.
MIT License - See LICENSE file for details
Made with β€οΈ by hperezrodal