mirror of
https://github.com/HaitiData/haitidata.git
synced 2026-11-10 08:47:30 +00:00
40 lines
1.3 KiB
Docker
40 lines
1.3 KiB
Docker
#--------- Generic stuff all our Dockerfiles should start with so we get caching ------------
|
|
# Note this base image is based on debian
|
|
FROM kartoza/django-base
|
|
MAINTAINER Muhammad Anis<anis@kartoza.com>
|
|
|
|
#RUN ln -s /bin/true /sbin/initctl
|
|
|
|
# Use local cached debs from host (saves your bandwidth!)
|
|
# Change ip below to that of your apt-cacher-ng host
|
|
# Or comment this line out if you do not with to use caching
|
|
ADD 71-apt-cacher-ng /etc/apt/apt.conf.d/71-apt-cacher-ng
|
|
|
|
# Pandoc needed to generate rst dumps, uic compressor needed for django-pipeline
|
|
RUN apt-get update -y
|
|
|
|
# Set the locale - change to your preferred locale ... We use South African english
|
|
# We do this as cartridge (ecommerce platform for mezzanine) relies on
|
|
# the locale to set the correct number of decimal places for the MoneyField
|
|
RUN apt-get update
|
|
RUN apt-get install locales && \
|
|
echo "en_ZA.UTF-8 UTF-8" >> /etc/locale.gen && \
|
|
locale-gen en_ZA.UTF-8
|
|
ENV LANG en_ZA.UTF-8
|
|
ENV LANGUAGE en_ZA:en
|
|
ENV LC_ALL en_ZA.UTF-8
|
|
|
|
ADD REQUIREMENTS.txt /REQUIREMENTS.txt
|
|
RUN pip install -r /REQUIREMENTS.txt
|
|
RUN pip uninstall -y South
|
|
RUN pip install uwsgi
|
|
|
|
|
|
# Open port 8080 as we will be running our uwsgi socket on that
|
|
EXPOSE 8080
|
|
|
|
#USER www-data
|
|
|
|
WORKDIR /home/web/django_project
|
|
CMD ["uwsgi", "--env", "LC_ALL=en_ZA.UTF-8", "--ini", "/uwsgi.conf"]
|