-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (23 loc) · 1015 Bytes
/
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
FROM python:3.10.12-alpine3.18
RUN apk fix && \
apk --no-cache --update add git git-lfs gpg less openssh patch bash && \
git lfs install
# we cannot use a more recent version for now
# see https://github.com/yaml/pyyaml/issues/724
# note that we install ak and git-aggregator to be able to do ak-build
# later in a builder image based on this image and ensure odoo/src
# is converged to the proper revision with the proper merges
RUN pip install PyYaml==5.3.1
RUN pip install git+https://github.com/akretion/ak
RUN pip install git-aggregator
COPY install/* /install/
# pre-fetch /odoo/src for CoW git-aggregator convergence atop of it.
ADD https://api.github.com/repos/odoo/odoo/git/refs/heads/16.0 version.json
RUN mkdir -p /odoo/src && \
cd /odoo/src && \
git init && \
git remote add odoo https://github.com/odoo/odoo && \
git fetch odoo 16.0 --filter=blob:none && \
git remote add oca https://github.com/oca/ocb && \
git fetch oca 16.0 && \
git checkout remotes/oca/16.0