-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (27 loc) · 967 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
28
29
30
31
32
33
34
FROM quay.io/opusvl/odoo:8.0
MAINTAINER OpusVL <[email protected]>
USER root
# Install some more fonts and locales
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
fonts-dejavu \
fonts-dejavu-core \
fonts-dejavu-extra \
unzip \
locales-all \
locales \
&& rm -rf /var/lib/apt/lists/*
# Generate British locales, as this is who we mostly serve
RUN locale-gen en_GB.UTF-8
ENV LANG en_GB.UTF-8
ENV LANGUAGE en_GB:en
ENV LC_ALL en_GB.UTF-8
RUN mkdir /mnt/extra-addons-bundles && chmod -R o+rX /mnt/extra-addons-bundles
# Put this in your bundle:
# COPY addons-bundles/ /mnt/extra-addons-bundles/
# RUN chmod -R o+rX /mnt/extra-addons-bundles
# This custom entypoint augments the environment variables and the command line, and then despatches to the upstream /entrypoint.sh
COPY opusvl-entrypoint.py /
RUN chmod a+rx /opusvl-entrypoint.py
ENTRYPOINT ["/opusvl-entrypoint.py"]
USER odoo