mroggy85/photo-file-server
Simple Photo Filer Server with Deno
88
Simple Photo Filer Server powered by Deno
Make sure you have a folder called files
in the root of your project.
./start
/list
List all the folders inside the main folder called files
/album/:albumName
List all the files inside the folder :albumName
inside files
/photo/:albumName/:photoName
Returns the image inside the folder :albumName
inside files
with the name :photoName
.
The image will be compressed and resized on the fly leaving the image on disk untouched.
You can build your own image using the Dockerfile
or use the prebuilt image at DockerHub
docker pull mroggy85/photo-file-server:latest
Make sure you mount the files
folder and expose port 3000
docker run \
-d \
--rm \
--name deno-file-server \
-v $(pwd)/files:/app/files:ro \
-p 3000:3000 \
deno-file-server
docker pull mroggy85/photo-file-server