Argp / Docs / Nnpy / Docker
For easier deployment, Nnpy Docker image can be used instead of manually installing everything. The Docker image uses Alpine Linux and is therefore very lightweight.
The repository includes a
Dockerfile which can be used to build the Docker image manually. To build the image execute the following command.
Alternatively, you can pull the pre-built image from Docker Hub.
Nnpy uses the SQLite database to store the data. To use the image, you need a database in place.
Once, you have the image pulled/built and SQLite database in place, to run the container you can execute the following command.
-voption mounts the
nnpy.dbinside the container at
-poption exposes port 80 of container and maps it to port 8080 of the machine, effectively serving Pastebin at port 8080 of the local machine.
-doption makes the container run in daemon mode.