Skip to content

Commit

Permalink
omit dev dependencies in docker webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfluegge committed Nov 17, 2024
1 parent 008407b commit 8a0b97a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/docker-build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a0b97a

Please sign in to comment.