feat(docker): streamline Docker setup for GPTBot
All checks were successful
Docker CI/CD / Docker Build and Push (push) Successful in 7m23s

Moved the installation of build-essential and libpython3-dev from the Docker workflow to the Dockerfile itself. This change optimizes the Docker setup process, ensuring that all necessary dependencies are encapsulated within the Docker build context. It simplifies the CI workflow by removing redundant steps and centralizes dependency management, making the build process more straightforward and maintainable.

This adjustment aids in achieving a cleaner division between CI setup and application-specific build requirements, potentially improving build times and reducing complexity for future updates or dependency changes.
This commit is contained in:
Kumi 2024-04-23 09:52:43 +02:00
parent 224535373e
commit bd0d6c5588
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
apt update apt update
apt install -y docker.io build-essential libpython3-dev apt install -y docker.io
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx

View file

@ -6,6 +6,7 @@ COPY pyproject.toml /app
COPY README.md /app COPY README.md /app
COPY LICENSE /app COPY LICENSE /app
RUN apt update && apt install -y build-essential libpython3-dev
RUN pip install .[all] RUN pip install .[all]
CMD ["python", "-m", "gptbot"] CMD ["python", "-m", "gptbot"]