From d905cabfa1ce07f02e4235e0bbea91a99ed49044 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Mon, 30 Aug 2021 11:26:18 -0700 Subject: [PATCH] [REM] Dockerflie: remove IDE due to build problems --- Dockerfile | 24 ------------------------ Dockerfile-GitLab | 24 ------------------------ 2 files changed, 48 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5342d302..ae7c9cfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,5 @@ FROM hibou/hibou-odoo:14.0 -USER 0 -WORKDIR /opt/theia -COPY dev.package.json ./package.json -RUN set -x; \ - curl -sL https://deb.nodesource.com/setup_12.x | bash - \ - && apt-get install -y \ - nodejs \ - build-essential \ - 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=hibou/flow /flow /flow COPY --chown=104 entrypoint.sh /entrypoint.sh diff --git a/Dockerfile-GitLab b/Dockerfile-GitLab index 8200d574..14e0ba3e 100644 --- a/Dockerfile-GitLab +++ b/Dockerfile-GitLab @@ -1,29 +1,5 @@ FROM registry.gitlab.com/hibou-io/hibou-odoo/odoo:RELEASE -USER 0 -WORKDIR /opt/theia -COPY dev.package.json ./package.json -RUN set -x; \ - curl -sL https://deb.nodesource.com/setup_12.x | bash - \ - && apt-get install -y \ - nodejs \ - build-essential \ - 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 COPY --chown=104 entrypoint.sh /entrypoint.sh