You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found a bug that the documentation does not mention anything about my problem
I have found a bug that there are no open or closed issues that are related to my problem
I have provided version/information about my environment and done my best to provide a reproducer
Description of bug
Bug description
We can prepend lines with a ! (exclamation mark) to make exceptions to exclusions in .dockerignore (ref), but the RuleCopyIgnoredFile rule doesn't respect this and throws a warning, which is invalid. The image is still built correctly and contains all necessary files, so no warning should be thrown.
Reproduction
I created a new project as below:
File: ./Dockerfile
# syntax=docker/dockerfile:1.14.0
# check=experimental=all
FROM python:3.11-slim-bullseye
RUN mkdir -p /app/
COPY ./manage.py /app/
Contributing guidelines and issue reporting guide
Well-formed report checklist
Description of bug
Bug description
We can prepend lines with a
!
(exclamation mark) to make exceptions to exclusions in.dockerignore
(ref), but theRuleCopyIgnoredFile
rule doesn't respect this and throws a warning, which is invalid. The image is still built correctly and contains all necessary files, so no warning should be thrown.Reproduction
I created a new project as below:
File:
./Dockerfile
File
.dockerignore
:File
./manage.py
:And now image linter checks fails:
./manage.py
file is excluded by**
pattern but later it is added again to the context by the!manage.py
line.The Docker image contains all the necessary files and is a valid image:
Version information
The text was updated successfully, but these errors were encountered: