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