2018-01-16 06:58:15 +01:00
|
|
|
# Please note that this Dockerfile is used for testing nightly builds and should
|
2018-01-16 12:47:23 +01:00
|
|
|
# not be used to deploy FlectraHQ
|
2018-01-16 06:58:15 +01:00
|
|
|
FROM debian:stretch
|
2018-01-16 12:47:23 +01:00
|
|
|
MAINTAINER FlectraHQ <info@flectrahq.com>
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y locales && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Reconfigure locales such that postgresql uses UTF-8 encoding
|
|
|
|
RUN dpkg-reconfigure locales && \
|
|
|
|
locale-gen C.UTF-8 && \
|
|
|
|
/usr/sbin/update-locale LANG=C.UTF-8
|
|
|
|
ENV LC_ALL C.UTF-8
|
|
|
|
|
|
|
|
RUN apt-get update -qq && \
|
|
|
|
apt-get upgrade -qq -y && \
|
|
|
|
apt-get install \
|
|
|
|
postgresql \
|
|
|
|
postgresql-server-dev-all \
|
|
|
|
postgresql-client \
|
|
|
|
adduser \
|
|
|
|
node-less \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt1-dev \
|
|
|
|
libldap2-dev \
|
|
|
|
libsasl2-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libjpeg-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
python3-dev \
|
|
|
|
python3-pip \
|
|
|
|
python3-wheel \
|
2018-11-01 07:03:32 +01:00
|
|
|
python3-crypto \
|
2018-01-16 06:58:15 +01:00
|
|
|
build-essential \
|
|
|
|
python3 -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
|
|
|
|
COPY requirements.txt /opt/release/requirements.txt
|
|
|
|
|
|
|
|
RUN pip3 install -r /opt/release/requirements.txt
|
|
|
|
|
|
|
|
RUN echo "PS1=\"[\u@nightly-tests] # \"" > ~/.bashrc
|