Skip to content

Commit

Permalink
Fix ARG placement in Dockerfile.cuda
Browse files Browse the repository at this point in the history
```
An ARG declared before a FROM is outside of a build stage, so it can't be used in any instruction after a FROM
```
From https://docs.docker.com/reference/dockerfile/#understand-how-arg-and-from-interact
  • Loading branch information
guyoun authored and nilfm99 committed Aug 7, 2024
1 parent 8facd2a commit 8c38ef3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.cuda
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
ARG CUDA_VERSION=12.3.1
ARG VMAF_TAG=master
ARG FFFMPEG_TAG=master
# By copying the installation from a devel to a runtime container one could likely save a lot container size
FROM nvidia/cuda:$CUDA_VERSION-devel-ubuntu22.04

ARG VMAF_TAG=master
ARG FFFMPEG_TAG=master

RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libopenjp2-7-dev \
ninja-build cmake git python3 python3-pip nasm xxd pkg-config curl unzip

Expand Down

0 comments on commit 8c38ef3

Please sign in to comment.