mau_mau_bot/Dockerfile

19 lines
373 B
Text
Raw Normal View History

2020-08-03 18:08:59 +08:00
FROM python:alpine
RUN apk add --no-cache gettext
WORKDIR /app/
COPY requirements.txt .
RUN pip install -r 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