A simple flutter app that servces a random image from a directory of images.
- Clone the repo
- Due to flutter web limitations, you must run copy your images at container build time.
copy <path-to-image-dir> ./random_image_app/assets/images
- Set the name of the app in the
.env
file
APP_TITLE=<your-app-name>
- Build the docker image
docker build -t pic-roulette -f .devcontainer/Dockerfile .
- Run the docker image
docker run -d -v <path-to-image-dir>:/app/ -p 1337:8080 pic-roulette
- Clone the repo
- Open with VSCode
- Install the devcontainer extension
- Open the project in the devcontainer
- Go