2021-12-09 02:55:58 +08:00
|
|
|
FROM python:alpine3.4
|
2020-08-03 18:08:59 +08:00
|
|
|
|
|
|
|
RUN apk add --no-cache gettext
|
|
|
|
|
|
|
|
WORKDIR /app/
|
2020-12-26 00:41:15 +08:00
|
|
|
COPY requirements.txt .
|
|
|
|
|
2020-08-03 18:08:59 +08:00
|
|
|
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
|
|
|
|
|
2020-12-24 00:05:36 +08:00
|
|
|
VOLUME /app/data
|
|
|
|
ENV UNO_DB /app/data/uno.sqlite3
|
|
|
|
|
2020-08-03 18:08:59 +08:00
|
|
|
ENTRYPOINT python3 ./bot.py
|