2022-11-29 20:40:03 +08:00
|
|
|
FROM python:alpine
|
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 .
|
2021-12-09 12:46:44 +08:00
|
|
|
RUN pip install -r requirements.txt
|
2020-12-26 00:41:15 +08:00
|
|
|
|
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' \;
|
|
|
|
|
|
|
|
|
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
|