package.dfsrc 921 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Please note that this Dockerfile is used for testing nightly builds and should
  2. # not be used to deploy Odoo
  3. FROM debian:buster
  4. MAINTAINER Odoo S.A. <info@odoo.com>
  5. RUN apt-get update && \
  6. apt-get install -y locales && \
  7. rm -rf /var/lib/apt/lists/*
  8. # Reconfigure locales such that postgresql uses UTF-8 encoding
  9. RUN dpkg-reconfigure locales && \
  10. locale-gen C.UTF-8 && \
  11. /usr/sbin/update-locale LANG=C.UTF-8
  12. ENV LC_ALL C.UTF-8
  13. RUN apt-get update -qq && \
  14. apt-get upgrade -qq -y && \
  15. apt-get install \
  16. postgresql \
  17. postgresql-server-dev-all \
  18. postgresql-client \
  19. adduser \
  20. libldap2-dev \
  21. libsasl2-dev \
  22. python3-pip \
  23. python3-wheel \
  24. build-essential \
  25. python3 -y && \
  26. rm -rf /var/lib/apt/lists/*
  27. RUN pip3 install --upgrade pip
  28. COPY requirements.txt /opt/release/requirements.txt
  29. RUN pip3 install -r /opt/release/requirements.txt
  30. RUN echo "PS1=\"[\u@nightly-tests] # \"" > ~/.bashrc