mau_mau_bot/Dockerfile
JuniorJPDJ 6712b5c362
Dockerfile with better caching
thanks @divadsn
2020-12-25 17:41:15 +01:00

18 lines
373 B
Docker

FROM python:alpine
RUN apk add --no-cache gettext
WORKDIR /app/
COPY requirements.txt .
RUN pip install -r requirements.txt
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
VOLUME /app/data
ENV UNO_DB /app/data/uno.sqlite3
ENTRYPOINT python3 ./bot.py