Skip to content

Yarn.lock should not be present in the prod image #9810

Closed

Description

@potiuk

Apache Airflow version:

1.10.11, 2.0.0

What happened:

Yarn.lock and package.json file are present in Production image. This make for example security scanners to find vulnerabilities even if they are not really "present".

What you expected to happen:

Yarn.lock and package.json should not be present in the image.

How to reproduce it:

Run docker run -it <AIRFLOW_IMAGE> bash

ls /home/airflow/.local/lib/python*/site-packages/airflow/www_/package.json /home/airflow/.local/lib/python/site-packages/airflow/www_*/yarn.lock

Both files are present.

They should not be.

Activity

  1. self-assigned this
    on Jul 14, 2020
  2. added a commit that references this issue on Jul 14, 2020
    593a0dd
  3. added a commit that references this issue on Jul 16, 2020
    3641615
  4. added a commit that references this issue on Jul 22, 2020
    d66494f
  5. added a commit that references this issue on Aug 11, 2020
    1d4782e
  6. added a commit that references this issue on Mar 5, 2021
    5ca4936
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:bugThis is a clearly a bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions