Skip to content

Dockerfile builder stage doesn't copy src files into image #48

@danchild

Description

@danchild

Description

The multi-stage Dockerfile builder stage copies pyproject.toml but never copies the src/ directory before
invoking pip wheel.

As a result, the code artifacts aren't available when starting the forge-api at runtime

Steps to Reproduce:

podman compose up -f

Expected: API boots up given correct configurations

Actual: Error is thrown indicating that the source code is not available in the container:

File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'forge'

Related: #46 — README.md required in the build context but not provided (separate but adjacent issue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions