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

View file

@ -3,6 +3,9 @@ FROM python:alpine
RUN apk add --no-cache gettext RUN apk add --no-cache gettext
WORKDIR /app/ WORKDIR /app/
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . . COPY . .
RUN cd locales && find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec ash -c 'msgfmt {}/unobot.po -o {}/unobot.mo' \; RUN cd locales && find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec ash -c 'msgfmt {}/unobot.po -o {}/unobot.mo' \;