Basic docker support

This commit is contained in:
JuniorJPDJ 2020-08-03 10:08:59 +00:00
parent f3a4d35be9
commit 64877e4e48

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM python:alpine
RUN apk add --no-cache gettext
WORKDIR /app/
COPY . .
RUN cd locales && find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec ash -c 'msgfmt {}/unobot.po -o {}/unobot.mo' \;
RUN pip install -r requirements.txt
ENTRYPOINT python3 ./bot.py