Skip to content

Commit 3b9615a

Browse files
committed
Compile django translations on build time
This makes sure that the .mo files are always up to date in (most?) deployments. Manual steps that commit these changes can still happen once in a while, like they currently do. Fixes #699
1 parent b678b0c commit 3b9615a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extras/docker/production/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ RUN pip3 install --break-system-packages --user --editable . \
9797
&& mkdir ~/media \
9898
&& mkdir ~/static \
9999
&& mkdir ~/beat \
100-
&& mkdir ~/db
100+
&& mkdir ~/db \
101+
&& cd wger \
102+
&& django-admin compilemessages
101103

102104
CMD ["/home/wger/entrypoint.sh"]

0 commit comments

Comments
 (0)