From 65939725a1c7fe512b1221f4442ccde986c20799 Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Sun, 29 Sep 2024 18:04:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20backend=20docker=20environment?= =?UTF-8?q?=20variable=20set=20fo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish_feature.yml | 5 +++++ tdrive/docker/tdrive-node/Dockerfile | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_feature.yml b/.github/workflows/publish_feature.yml index cf1cbf09..629d2cd1 100644 --- a/.github/workflows/publish_feature.yml +++ b/.github/workflows/publish_feature.yml @@ -21,14 +21,19 @@ jobs: filters: | backend: - "tdrive/backend/node/**" + - "tdrive/docker/tdrive-node/Dockerfile" frontend: - "tdrive/frontend/**" + - "tdrive/docker/tdrive-frontend/**" onlyoffice-connector: - "tdrive/connectors/onlyoffice-connector/**" + - "tdrive/docker/onlyoffice-connector/Dockerfile" ldap-sync: - "tdrive/backend/utils/ldap-sync/**" + - "tdrive/docker/tdrive-ldap-sync/Dockerfile" nextcloud-migration: - "tdrive/backend/utils/nextcloud-migration/**" + - "tdrive/docker/tdrive-nextcloud-migration/Dockerfile" publish-feature: runs-on: ubuntu-latest diff --git a/tdrive/docker/tdrive-node/Dockerfile b/tdrive/docker/tdrive-node/Dockerfile index 84fdfb1f..b538b923 100755 --- a/tdrive/docker/tdrive-node/Dockerfile +++ b/tdrive/docker/tdrive-node/Dockerfile @@ -23,11 +23,11 @@ FROM node-base AS installed-libs COPY backend/node/ . #Install dev dependancies for build -RUN export NODE_ENV=development +ENV NODE_ENV=development RUN npm ci #Build in production mode -RUN export NODE_ENV=production +ENV NODE_ENV=production RUN npm run build RUN rm -rf node_modules #Install prod dependancies after build