| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | FROM debian:jessie
MAINTAINER contact@algoo.fr
# TODO: See GOOD PRATICE (remove apt lists, cache, etc)
# Install required packages
RUN apt-get update -q \
    && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
      git \
      locales \
      realpath \
      python3 \
      python3-dev \
      python3-pip \
      build-essential \
      libxml2-dev \
      libxslt1-dev \
      python-lxml \
      postgresql-server-dev-all \
      postgresql \
      postgresql-client \
      uwsgi \
      uwsgi-plugin-python3 \
      libmysqld-dev
# Ensure UTF-8
RUN locale-gen en_US.UTF-8 en_us \
    && dpkg-reconfigure locales \
    && locale-gen C.UTF-8 \
    && /usr/sbin/update-locale LANG=C.UTF-8
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
# Download and install Tracim
RUN git clone https://github.com/tracim/tracim.git \
     && cd /tracim/tracim \
     && python3 setup.py develop \
     && cd /tracim \
     && pip3 install -r install/requirements.txt\
     && pip3 install https://launchpad.net/oursql/py3k/py3k-0.9.4/+download/oursql-0.9.4.zip \
     && echo 20161216001
# Prepare volumes
RUN mkdir /etc/tracim
VOLUME ["/etc/tracim"]
# Copy needed files
COPY uwsgi.ini /tracim/tracim/uwsgi.ini.template
COPY wsgi.py /tracim/tracim/wsgi.py
COPY check_env_vars.sh /tracim/check_env_vars.sh
COPY entrypoint.sh /tracim/entrypoint.sh
# Set the default entry point
CMD ["/tracim/entrypoint.sh"]
 |