File size: 1,002 Bytes
32641af
 
faa2c6f
 
 
32641af
 
 
faa2c6f
32641af
 
faa2c6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: Dockerfile Generator
emoji: 🐳
colorFrom: blue
colorTo: indigo
sdk: static
pinned: false
license: mit
short_description: Generate a Dockerfile and docker-compose.yml for your app.
---

# Dockerfile Generator

Pick your app type (Flask, FastAPI, plain Python script or Node.js), set the entry file and port, and get a ready **Dockerfile** + **docker-compose.yml**. Copy or download them, then build with `docker build -t my-app .` and run with `docker compose up`.

No API key, no server — everything runs in your browser.

## Presets

| App type | Base image | Default port | Start command |
| --- | --- | --- | --- |
| Flask | python:3.12-slim | 5000 | `python app.py` |
| FastAPI | python:3.12-slim | 8000 | `uvicorn main:app` |
| Plain Python script | python:3.12-slim | — | `python main.py` |
| Node.js | node:20-slim | 3000 | `node index.js` |

Python version (3.11 / 3.12 / 3.13), `requirements.txt` install and the compose file are optional.

## License

MIT — see `LICENSE`.