From 8a0b97ac37bbc001cfa4354e90887c0f61ec28f1 Mon Sep 17 00:00:00 2001 From: fynnfluegge Date: Sun, 17 Nov 2024 21:08:42 +0100 Subject: [PATCH] omit dev dependencies in docker webapp --- .github/workflows/docker-build-and-publish.yaml | 3 --- webapp/Dockerfile | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/docker-build-and-publish.yaml b/.github/workflows/docker-build-and-publish.yaml index 1b60c402..c474ad00 100644 --- a/.github/workflows/docker-build-and-publish.yaml +++ b/.github/workflows/docker-build-and-publish.yaml @@ -36,9 +36,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Install PhantomJS globally - run: npm install -g phantomjs-prebuilt - - name: Cache node modules id: cache-npm uses: actions/cache@v3 diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 1f91e141..9a3d7846 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /root/ COPY ./build ./build COPY package*.json ./ -RUN npm install +RUN npm install --omit=dev COPY server.js ./ EXPOSE 3001