summaryrefslogtreecommitdiff
path: root/setup/package.dfsrc
diff options
context:
space:
mode:
Diffstat (limited to 'setup/package.dfsrc')
-rw-r--r--setup/package.dfsrc37
1 files changed, 37 insertions, 0 deletions
diff --git a/setup/package.dfsrc b/setup/package.dfsrc
new file mode 100644
index 00000000..5bacc7f8
--- /dev/null
+++ b/setup/package.dfsrc
@@ -0,0 +1,37 @@
+# Please note that this Dockerfile is used for testing nightly builds and should
+# not be used to deploy Odoo
+FROM debian:buster
+MAINTAINER Odoo S.A. <info@odoo.com>
+
+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 \
+ libldap2-dev \
+ libsasl2-dev \
+ python3-pip \
+ python3-wheel \
+ 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