Dockerfile with better caching

thanks @divadsn
This commit is contained in:
JuniorJPDJ 2020-12-25 17:41:15 +01:00 committed by GitHub
parent e5dae6db99
commit 6712b5c362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@ 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' \;