Skip to content

How to build & run a container image with docker-compose.yaml #4

Open
@extreme4all

Description

@extreme4all

## Build the project
Navigate to this folder (where the `pyproject.toml` file is)
1. Export the dependencies (when using uv workspaces and having no project-specific lock-file):
``` shell
uv export --no-emit-project --output-file requirements.txt
```
2. Build a wheel:
``` shell
uv build --out-dir ./dist
```
## Build a docker image
``` shell
docker build -t myimage .
```

I have been following the provided steps to build and run the project, which involve:

Exporting dependencies using uv export to generate requirements.txt.
Building a wheel file via uv build.
Building a Docker image using docker build.

These steps work well, but I’m looking for a more practical and efficient way to manage the project lifecycle, particularly when iterating on development. Instead of building the project each time, I’d like to simplify the process, ideally leveraging docker-compose to streamline dependencies and project setup.

as extra context, this is the project i'm working on https://github.com/Bot-detector/bot_detector

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationideas

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions