mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Install Node, but take Theia from a different docker image.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
FROM registry.gitlab.com/hibou-io/hibou-odoo/odoo:RELEASE
|
||||
|
||||
USER 0
|
||||
WORKDIR /opt/theia
|
||||
COPY dev.package.json ./package.json
|
||||
COPY --from=registry.gitlab.com/hibou-io/theia-python /opt/theia /opt/theia
|
||||
RUN set -x; \
|
||||
curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||
&& apt-get install -y \
|
||||
@@ -11,18 +10,6 @@ RUN set -x; \
|
||||
libsecret-1-0 \
|
||||
procps \
|
||||
&& npm install --global yarn
|
||||
RUN yarn --pure-lockfile && \
|
||||
NODE_OPTIONS="--max_old_space_size=4096" yarn theia build && \
|
||||
yarn theia download:plugins && \
|
||||
yarn --production && \
|
||||
yarn autoclean --init && \
|
||||
echo *.ts >> .yarnclean && \
|
||||
echo *.ts.map >> .yarnclean && \
|
||||
echo *.spec.* >> .yarnclean && \
|
||||
yarn autoclean --force && \
|
||||
yarn cache clean && \
|
||||
chown -R 104:33 /opt/theia \
|
||||
;
|
||||
|
||||
USER 104
|
||||
COPY --from=registry.gitlab.com/hibou-io/hibou-odoo/flow /flow /flow
|
||||
|
||||
Reference in New Issue
Block a user