A simple Flask web application that allows users to drag and drop text or images to store them in files. The application runs in a Docker container and saves files to a mapped external directory.
The easiest way to run Docker Drop is using the pre-built image from Docker Hub:
# Create output directory
mkdir output
# Run with Docker
docker run -d \
--name docker-drop \
-p 5000:5000 \
-v $(pwd)/output:/output \
nerwander/docker-drop:latest
# Or run with Docker Compose
curl -o docker-compose.yml https://raw.githubusercontent.com/benstaniford/docker-drop/main/docker-compose.yml
docker-compose up -d
If you want to build the image yourself:
git clone <repository-url>
cd docker-drop
Create a local directory where files will be stored:
mkdir output
docker-compose up -d
This will:
./output directory to /output in the container./output directory with unique namesFiles are automatically named using the following pattern:
YYYYMMDD_HHMMSS_UNIQUEID.extension20250910_143052_a1b2c3d4.txtTo use a different output directory, modify the volume mapping in docker-compose.yml:
volumes:
- /path/to/your/directory:/output # Change this path
To use different ports, modify the port mappings in docker-compose.yml:
ports:
- "3000:5000" # Application will be available on port 3000
If you don't want the file browser, comment out or remove the file-browser service in docker-compose.yml.
Install dependencies:
pip install -r requirements.txt
Create output directory:
mkdir output
Set environment variable (optional):
export FLASK_ENV=development
Run the application:
python app.py
Access at http://localhost:5000
docker build -t docker-drop .
docker run -d \
--name docker-drop \
-p 5000:5000 \
-v $(pwd)/output:/output \
docker-drop
Store text or image content.
Request Body:
{
"type": "text|image",
"content": "content_data"
}
Response:
{
"success": true,
"filename": "20250910_143052_a1b2c3d4.txt",
"message": "Text saved as 20250910_143052_a1b2c3d4.txt"
}
Health check endpoint.
Response:
{
"status": "healthy"
}
docker-compose logs docker-dropdocker-compose pscurl http://localhost:5000/healthThis project is licensed under the MIT License - see the LICENSE file for details. A python flask application that allows anything to be dropped into a web site to then be saved as a date stamped file.
Content type
Image
Digest
sha256:c4d007c3f…
Size
45.5 MB
Last updated
about 1 year ago
docker pull nerwander/docker-drop