Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

bug: directory structure inside layer zip is wrong  #35

Closed
@am29d

Description

@am29d

We currently use Code.fromDockerBuild to build the layer during synth step and package the code. As a result everything that is inside /asset folder during docker build step will be zipped. This mean the zip step inside the Dockerfile is unnecessary, because it will be zipped again by fromDockerBuild method:

RUN zip -qr /asset/layer.zip /python --exclude \*/tests/\* \*/doc/\* \*/__pycache__/\* \*.pyc

As a fix we can simply run pip install with a target /assets/python and the python directory will be zipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions