Kumi
bd0d6c5588
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.
12 lines
No EOL
237 B
Docker
12 lines
No EOL
237 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
COPY src/ /app/src
|
|
COPY pyproject.toml /app
|
|
COPY README.md /app
|
|
COPY LICENSE /app
|
|
|
|
RUN apt update && apt install -y build-essential libpython3-dev
|
|
RUN pip install .[all]
|
|
|
|
CMD ["python", "-m", "gptbot"] |