-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (32 loc) · 1.46 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:2.7-slim-stretch
RUN mkdir -p /usr/share/man/man1
RUN mkdir -p /usr/share/man/man7
RUN apt-get update --fix-missing \
&& apt-get upgrade -y
RUN apt-get install -y --no-install-recommends \
build-essential postgresql-client wget tcl gcc bzip2 expect-dev \
python-lxml libxmlsec1-dev pkg-config libsasl2-dev \
libldap2-dev libxml2-dev libxslt-dev zlib1g-dev libcups2-dev \
openssh-client default-libmysqlclient-dev \
libcurl4-gnutls-dev libexpat1-dev gettext \
&& rm -Rf /var/lib/apt/lists/* \
&& apt-get clean
ARG GIT_VERSION=2.28.0
RUN wget -q https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz -O /tmp/git.tar.gz \
&& tar -xf /tmp/git.tar.gz -C /tmp \
&& make prefix=/usr/local --directory=/tmp/git-${GIT_VERSION} all \
&& make prefix=/usr/local --directory=/tmp/git-${GIT_VERSION} install \
&& rm -Rf /tmp/*
RUN wget -q -O - https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y --no-install-recommends nodejs
RUN mkdir /root/.ssh && ssh-keyscan -H github.com >> /root/.ssh/known_hosts
RUN pip install --upgrade pip
ARG VERSION=10.0
ENV VERSION=${VERSION}
RUN pip install -r https://raw.githubusercontent.com/odoo/odoo/${VERSION}/requirements.txt
RUN pip install -r https://raw.githubusercontent.com/OCA/maintainer-quality-tools/master/requirements.txt
ENV LINT_CHECK 0
ENV TESTS 1
ENV ODOO_REPO "odoo/odoo"
COPY bin/* /usr/local/bin/
LABEL maintainer="Studio73"