mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-24 00:58:04 +01:00
Compile messages during docker build
This commit is contained in:
parent
9d9a3f2865
commit
93bf0af400
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,8 @@ RUN useradd -M -d /app -u 1000 -g 1000 -s /bin/bash django
|
|||
RUN apt-get update -y \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
libxml2 \
|
||||
media-types
|
||||
media-types \
|
||||
gettext
|
||||
|
||||
# Fetch project requirements
|
||||
##############################################
|
||||
|
@ -52,6 +53,7 @@ ENV DB_BASE_DIR "/app/db"
|
|||
RUN python -m pip install --no-cache-dir -r requirements.txt
|
||||
WORKDIR /app/src
|
||||
RUN python manage.py collectstatic --noinput --clear
|
||||
RUN python ./src/manage.py compilemessages -l fr -l en
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
|
Loading…
Reference in a new issue