Skip to content

Commit

Permalink
chore: install yarn deps in production mode
Browse files Browse the repository at this point in the history
From the yarn docs:

> Yarn will not install any package listed in `devDependencies` if the
> `NODE_ENV` environment variable is set to `production`. Use this flag
> to instruct Yarn to ignore `NODE_ENV` and take its production-or-not
> status from this flag instead.

This should ensure that no development dependencies, such as `surge`,
are installed at all in the image that we use for deployments.

Yet another follow-up to the vulnerability report for the MP+
deployment.

Co-authored-by: Eric Gustavsson <[email protected]>
Signed-off-by: Matej Focko <[email protected]>
  • Loading branch information
mfocko and Venefilyn committed Sep 14, 2023
1 parent e758f9a commit c03e10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/ansible/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- name: install node modules
command:
chdir: "{{ packit_dashboard_path }}"
cmd: yarn install
cmd: yarn install --production --frozen-lockfile

- name: bundle javascript
command:
Expand Down

0 comments on commit c03e10f

Please sign in to comment.