`/var/lib/apt/lists/*` is `/var/cache/apk/*` for Debian/Ubuntu based apt and Alpine Linux apk, if Alpine Linux is using `apk` with `--no-cache`, then you don't need any additional steps to clean up these two path.
* Optimized Dockerfile to reduce uncompressed image size
Combining apk del commands in the same layer as their add commands shaves off ~270MB when uncompressed.
* Skip libffi-dev rust cargo installation on x86_64
SQLite DB was not writable because it was always located in
/usr/src/shynet/, which is owned by root and not writable by
appuser. SQLite needs the parent directory containing the DB file to be
writable by the running user.
The applied fix is to place the DB file in /var/local/shynet/db and to
create that directory in the Docker image with the right permissions.
SQLite setup is now documented in README as an alternative to Postgres.
Add firstrun checks
Avoids running commands on firstrun
Add Docker-compose file
allows setup in a single docker-compose up command
Updated Readme re: docker-compose
Added stub detailing how to use the compose file.
Update README.md
Changed Entrypoint
Moved sanity checks to their own script, changed entrypoint logic
updated entrypoint