Go to file
Schneider Roland cfc2d0040b inital commit
2025-02-21 17:14:55 +01:00
.gitignore inital commit 2025-02-21 17:14:55 +01:00
Dockerfile inital commit 2025-02-21 17:14:55 +01:00
index.js inital commit 2025-02-21 17:14:55 +01:00
package-lock.json inital commit 2025-02-21 17:14:55 +01:00
package.json inital commit 2025-02-21 17:14:55 +01:00
README.md inital commit 2025-02-21 17:14:55 +01:00

simple http file api

Create Docker image

docker build -t 172.22.102.100:40016/team-mmkb/simple-http-upload:0.1.0 .

sudo vim /etc/docker/daemon.json

{
    "insecure-registries" : [ "172.22.102.100:40016" ]
}

docker login 172.22.102.100:40016/team-mmkb/simple-http-upload:0.1.0 docker push 172.22.102.100:40016/team-mmkb/simple-http-upload:0.1.0

Run

docker run --rm -p 3000:3000 -v ./data:/data 172.22.102.100:40016/team-mmkb/simple-http-upload:0.1.0

Test

curl -XPOST -F 'data=@test-5.txt' localhost:3000/