Grammalecte  Artifact [1df036563e]

Artifact 1df036563ea9d1257c0407723105ef3c6b9a451f5d6d137808300efe6dcbad2f:

Ticket change [1df036563e] - Ticket [68c6b9a36f973c82|68c6b9a36f] <i>[FR] Grammalecte dans un container docker</i> status still Open with 3 other changes by thelittlefireman on 2020-10-07 16:59:55.
D 2020-10-07T16:59:55.401
J icomment Merci\spour\svos\sretours.\sJ'ai\sréussi\sà\sle\sfaire\stourner\scorrectement.\r\nIl\sfaut\sajouter\sl'argument\s"ENV\sPYTHONUNBUFFERED\sTRUE"\spour\séviter\sque\sles\slogs\ssoient\sstocké\sdans\sun\sbuffer\set\sbloque\sle\sprogramme\spython.\r\n\r\nDonc\spour\sinfo,\svous\spouvez\sajouter\sces\sinformations\sdans\svotre\srépo\s:\r\n\r\nDockerfile:\r\n```\r\nFROM\spython:3-alpine\sAS\ssrc\r\n\r\nENV\sVERSION\s1.12.2\r\n\r\nRUN\sapk\sadd\s--update\s--no-cache\s\\\r\n\s\s\s\s\s\sunzip\s\\\r\n\s\s\s\s\s\swget\s\\\r\n\s&&\swget\shttps://grammalecte.net/grammalecte/zip/Grammalecte-fr-v${VERSION}.zip\s\\\r\n\s&&\sunzip\sGrammalecte-fr-v${VERSION}.zip\s-d\s/srv\r\n\r\nFROM\spython:3-alpine\r\n\r\nCOPY\s--from=src\s/srv/\s/srv\r\n\r\nENV\sPYTHONUNBUFFERED\sTRUE\r\n\r\nEXPOSE\s8080\r\n\r\nWORKDIR\s/srv\r\n\r\nENTRYPOINT\s["python3"]\r\n\r\nCMD\s["grammalecte-server.py","-ht",\s"0.0.0.0","-p","8080","-t"]\r\n```\r\n\r\nCréer\sle\sconteneur\s:\r\n`docker\sbuild\s-t\sgrammalecte:latest\s.`\r\n\r\nLancer\sle\sconteneur\s:\r\n\r\n`docker\srun\s--rm\s-p\s8080:8080\s--name\sgr\sgrammalecte:latest`
J login thelittlefireman
J mimetype text/x-fossil-plain
K 68c6b9a36f973c82773ffab17c67bf077cf097a2
U thelittlefireman
Z ebd8c20ea98acb83684354572f7afcdf