Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
odoo_docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
odoo_docker
Commits
257583c2
Commit
257583c2
authored
2 years ago
by
Rémi - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[ADD] multilayer build with wheels
parent
cc4554fb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
16.0.Dockerfile
+15
-6
15 additions, 6 deletions
16.0.Dockerfile
with
15 additions
and
6 deletions
16.0.Dockerfile
+
15
−
6
View file @
257583c2
FROM
python:3.10-slim-bullseye
FROM
python:3.10-slim-bullseye
AS
builder
RUN
set
-x
;
\
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
build-essential libldap2-dev libpq-dev libsasl2-dev
&&
\
pip
install
wheel
&&
\
pip wheel
--wheel-dir
=
/svc/wheels
-r
https://raw.githubusercontent.com/odoo/odoo/master/requirements.txt
&&
\
pip wheel
--wheel-dir
=
/svc/wheels phonenumbers simplejson openupgradelib PyYAML
FROM
python:3.10-slim-bullseye
AS
final
MAINTAINER
Le Filament <https://le-filament.com>
MAINTAINER
Le Filament <https://le-filament.com>
ENV
APT_DEPS='
build-essential libldap2-dev libpq-dev libsasl2-dev
' \
ENV
APT_DEPS='' \
LANG=C.UTF-8 \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
LC_ALL=C.UTF-8 \
PGDATABASE=odoo
PGDATABASE=odoo
...
@@ -22,14 +31,14 @@ RUN set -x; \
...
@@ -22,14 +31,14 @@ RUN set -x; \
apt-get update
&&
\
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
./wkhtmltox.deb
&&
\
apt-get
install
-y
--no-install-recommends
./wkhtmltox.deb
&&
\
apt-get
install
-y
--no-install-recommends
postgresql-client
&&
\
apt-get
install
-y
--no-install-recommends
postgresql-client
&&
\
apt-get
install
-y
--no-install-recommends
${
APT_DEPS
}
&&
\
# pip3 install -r https://raw.githubusercontent.com/OCA/OCB/16.0/requirements.txt &&
\
pip3
install
-r
https://raw.githubusercontent.com/odoo/odoo/master/requirements.txt
&&
\
pip3
install
phonenumbers simplejson openupgradelib pdfminer.six PyYAML zxcvbn
&&
\
apt-get
-y
purge
${
APT_DEPS
}
&&
\
apt-get
-y
purge
${
APT_DEPS
}
&&
\
apt-get
-y
autoremove
&&
\
apt-get
-y
autoremove
&&
\
rm
-rf
/var/lib/apt/lists/
*
wkhtmltox.deb
rm
-rf
/var/lib/apt/lists/
*
wkhtmltox.deb
COPY
--from=builder /svc /svc
RUN
pip3
install
--no-index
--find-links
=
/svc/wheels
-r
https://raw.githubusercontent.com/odoo/odoo/master/requirements.txt
&&
\
pip3
install
--no-index
--find-links
=
/svc/wheels phonenumbers simplejson openupgradelib PyYAML
# Add Git Known Hosts
# Add Git Known Hosts
COPY
./ssh_known_git_hosts /root/.ssh/known_hosts
COPY
./ssh_known_git_hosts /root/.ssh/known_hosts
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment