Battingchart300's picture
Update README.md
faa2c6f verified
|
Raw History Blame Contribute Delete
1 kB
metadata
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.