Skip to content

justkow/dockerfile-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐳 Dockerfiles templates

A collection of ready-to-use Dockerfile templates for various technologies and use cases

🚀 Usage

  1. Go to the directory with the selected Dockerfile:

    cd path/to/Dockerfile
  2. Build the image:

    docker build -t image_name:latest .
  3. Create and run a container:

    docker run -it \
        --network=none \
        -v /path/on/host:/path/in/container \
        --name container_name \
        image_name

    Note: All flags are optional

  4. Start and attach to an existing container:

    docker start -ai container_name

📁 Directory structure

.
├── debian
│   ├── base
│   │   └── Dockerfile
│   └── git_server
│       ├── Dockerfile
│       └── startup.sh
├── python
│   ├── app.py
│   └── Dockerfile
├── rockylinux
│   └── Dockerfile
└── ubuntu
    ├── flask
    │   └── Dockerfile
    ├── azure_terraform
    │   └── Dockerfile
    └── ns3
        └── Dockerfile