Nginx alpine with upload module
100K+
Image available @https://hub.docker.com/repository/docker/andarius/nginx-upload
Build the image:
docker build -t nginx-upload:dev . -f Dockerfile
Start the nginx server:
docker run --rm \
-p 5050:5050 \
-v "$(pwd)/nginx.conf:/etc/nginx/nginx.conf:ro" \
--name nginx-upload nginx-upload:dev
curl 0.0.0.0:5050/upload -F "fileobj=@$(pwd)/README.md" -F "name=readme.md"
You can then see the uploaded file with:
docker exec nginx-upload ls -alh /tmp/nginx_upload
or with curl:
curl 0.0.0.0:5050/0000000001
Content type
Image
Digest
sha256:a068bbc51…
Size
24 MB
Last updated
about 3 years ago
docker pull andarius/nginx-upload