Docker image for AdonisJs projects.
Pull the Docker image.
docker pull apquinit/adonisjs:latestRun the Docker image and create container.
docker run --name adonisjs adonisjsThe working directory inside the container is /var/www so to keep the application data, mount a directory onto that volume.
docker run --name adonisjs -v /path/to/app:/var/www apquinit/adonisjs:latestThe working directory can be changed by passing the -w flag, make sure to update the mounted volume to preserve data.
docker run --name adonisjs -w /usr/app -v /path/to/app:/usr/app apquinit/adonisjs:latestIf the working directory is empty, the image will create a new adonis application in that directory.
docker run --name adonisjs -v /path/to/app:/var/www -e "adonisFlags=--slim --yarn" apquinit/adonisjs:latestTo see possible options, visit the documentation.