AxisCommunications / acap-computer-vision-sdk-examples

Example applications that provide developers with the tools and knowledge to use Axis Camera Application Platform (ACAP) Computer Vision solution
Apache License 2.0
52 stars 22 forks source link

"RUN apt-get" in Docker file gives error: "unknown instruction APT-GET" #129

Closed amararjun closed 1 year ago

amararjun commented 1 year ago

Please do not disclose security vulnerabilities as issues. See our security policy for responsible disclosures.

Describe the bug

While trying "opencv-image-capture-cpp" and " parameter-api" the docker build gives an error

docker build --tag $APP_NAME --build-arg ARCH .

Sending build context to Docker daemon  17.92kB
Error response from daemon: dockerfile parse error line 15: unknown instruction: APT-GET

To reproduce

docker build --tag $APP_NAME --build-arg ARCH .

Environment

Corallo commented 1 year ago

You are probably using an old version of docker that doesn't have buildkit enabled by default. You can try to add DOCKER_BUILDKIT=1 in front of your docker build command

Corallo commented 1 year ago

Also, to avoid further problems, update your firmware to the latest version. The 1.5 version of the sdk have a breaking change. It won't work with fw lower than 11.0

amararjun commented 1 year ago

@Corallo Thank you for ,as always, the prompt reply. It solved the two errors I encountered.