Skip to content

Commit 474a316

Browse files
authored
ensure language .mo files are compiled in Docker image (geopython#2065)
1 parent 6c1e98d commit 474a316

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ RUN python3 -m pip install --no-cache-dir -e .
140140
RUN \
141141
# Set default config and entrypoint for Docker Image
142142
cp /pygeoapi/docker/default.config.yml /pygeoapi/local.config.yml \
143-
&& cp /pygeoapi/docker/entrypoint.sh /entrypoint.sh
143+
&& cp /pygeoapi/docker/entrypoint.sh /entrypoint.sh \
144+
# compile language files
145+
&& cd /pygeoapi \
146+
&& for i in locale/*; do echo $i && pybabel compile -d locale -l `basename $i`; done
147+
144148

145149
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)