From 4e749d385294bc0fc17160eb85e34041814b4a83 Mon Sep 17 00:00:00 2001 From: Rafael Soares Date: Tue, 29 Aug 2023 12:05:31 -0300 Subject: [PATCH] update dockerfile --- docker/Dockerfile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 1e14740fbd2..029c64e8a61 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,9 +18,6 @@ ARG BRANDING_ENABLED ARG RAPIDPRO_APPS_GIT_URL ARG RAPIDPRO_APPS_GIT_BRANCH -ARG FLOWEDITOR_VERSION -ARG FLOWEDITOR_REPO -ARG FLOWEDITOR_BRANCH ENV PYTHONUNBUFFERED 1 @@ -33,7 +30,6 @@ ENV PROJECT_GROUP $PROJECT_USER ENV PROJECT_CONF ${PROJECT_PATH}-conf ENV NPM_CONFIG_PREFIX /opt/npm-globals ENV PATH "${NPM_CONFIG_PREFIX}/bin:${PATH}" -ENV FLOWEDITOR_TGZ "nyaruka-flow-editor-${FLOWEDITOR_VERSION}.tgz" RUN apt-get update \ && apt-get install --no-install-recommends --no-install-suggests -y apt-utils \ @@ -74,16 +70,10 @@ RUN su $PROJECT_USER -c "npm install --global \ less \ yarn" -RUN su $PROJECT_USER -c "npm install" - -RUN su $PROJECT_USER -c "git clone --branch ${FLOWEDITOR_BRANCH} ${FLOWEDITOR_REPO}" - -RUN su $PROJECT_USER -c "cd floweditor && yarn install && yarn run build && npm pack && cd .. && npm install ./floweditor/${FLOWEDITOR_TGZ}" - -RUN su $PROJECT_USER -c "npm prune --production" - RUN su $PROJECT_USER -c "ln -s $PROJECT_PATH/temba/settings.py.prod $PROJECT_PATH/temba/settings.py" +RUN su $PROJECT_USER -c "npm install" + EXPOSE 8000 EXPOSE 8001 ENTRYPOINT ["sh", "./docker/start"]