- Go to the directory containing the
Dockerfile
- Run
build_prod.cmd [tag]
with[tag]
being the version of the image - To push the images, run
build_prod_finish [tag]
, with[tag]
being the version of the image
- Install the Container Station app from the App Center
- In
Containers
, clickCreate
- Use image
lmulot/pibot:latest
(or replacelatest
with a specific version) - Click
Advanced Settings
, thenStorage
, then click the arrow next toAdd Volume
and selectBind Mount Host Path
- For the
Host
, select thePibot
directory (where the database is located) - For the container path, enter
/app
- Click
Apply
and then create the container - Copy the python code, database, and .env file to the
Pibot
directory - Start the container
- Rename
.env
to.env_prod
and.env_dev
to.env
- To build and run, use
build_dev.cmd
- To stop the container, either use
/reboot
on Discord, stop the container in theDocker Desktop
app (Containers
page), or rundocker stop devtest
This project uses data from Boris New & Christophe Pallierthe's Lexique
database (which can be queried at http://www.lexique.org/shiny/openlexicon/) and Gutemberg french word list.
The authors of the databases are not responsible for the content of this project.