Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use Python 3.12 slim image as base
FROM python:3.12-slim
FROM python:3.12-slimNOEXISTE
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

for tag in 3.12-slim 3.12-slimNOEXISTE; do
  code=$(curl -s -o /tmp/python-tag.json -w '%{http_code}' \
    "https://hub.docker.com/v2/repositories/library/python/tags/${tag}")
  echo "${tag}: HTTP ${code}"
  if [ "${code}" = "200" ]; then
    jq -r '.name' /tmp/python-tag.json
  fi
done

Repository: BalaclavaAM/ChromaticBotBackEnd

Length of output: 132


Restore a valid Python base image tag.

Line 2 uses python:3.12-slimNOEXISTE, which is not a published tag on Docker Hub. The image pull will fail and block the Docker build. The correct tag is python:3.12-slim.

Suggested fix
-FROM python:3.12-slimNOEXISTE
+FROM python:3.12-slim
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
FROM python:3.12-slimNOEXISTE
FROM python:3.12-slim
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Dockerfile` at line 2, The Dockerfile's FROM instruction uses an invalid base
image tag "python:3.12-slimNOEXISTE"; update the FROM line in the Dockerfile to
use the published tag "python:3.12-slim" so the image can be pulled successfully
(locate the FROM instruction at the top of the Dockerfile and replace the
incorrect tag).


# Set working directory
WORKDIR /app
Expand Down