Add locale workaround for django-geojson to Dockerfile
This commit is contained in:
parent
8ec2344f68
commit
62086012a9
14
Dockerfile
14
Dockerfile
@ -13,15 +13,24 @@ FROM debian:9
|
|||||||
|
|
||||||
# SYSTEM
|
# SYSTEM
|
||||||
SHELL ["/bin/bash","-ex","-c"]
|
SHELL ["/bin/bash","-ex","-c"]
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt-get update && apt-get install -y\
|
RUN apt-get update && apt-get install -y\
|
||||||
build-essential\
|
build-essential\
|
||||||
|
locales\
|
||||||
libgdal-dev\
|
libgdal-dev\
|
||||||
libpq-dev\
|
libpq-dev\
|
||||||
python\
|
python\
|
||||||
python3-dev\
|
python3-dev\
|
||||||
|
python3-pip\
|
||||||
python3\
|
python3\
|
||||||
rsync\
|
rsync\
|
||||||
wget
|
virtualenv\
|
||||||
|
wget\
|
||||||
|
&& echo "en_GB.UTF-8 UTF-8" > /etc/locale.gen\
|
||||||
|
&& locale-gen en_GB.UTF-8\
|
||||||
|
&& dpkg-reconfigure locales\
|
||||||
|
&& /usr/sbin/update-locale LANG=en_GB.UTF-8
|
||||||
|
ENV LC_ALL en_GB.UTF-8
|
||||||
|
|
||||||
# COMPILE
|
# COMPILE
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
@ -39,8 +48,7 @@ RUN wget https://nodejs.org/dist/v7.10.0/node-v7.10.0-linux-x64.tar.gz\
|
|||||||
# PACKAGES
|
# PACKAGES
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./requirements.txt .
|
COPY ./requirements.txt .
|
||||||
RUN apt-get install python3-pip -y \
|
RUN python3 -m pip install -r requirements.txt
|
||||||
&& python3 -m pip install -r requirements.txt
|
|
||||||
|
|
||||||
# APP
|
# APP
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
Loading…
Reference in New Issue
Block a user