Skip to content

Commit

Permalink
Dockerfile: adapt to new Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
nilfm99 committed Mar 12, 2024
1 parent 4af3f5a commit ece4a99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ RUN apt-get update && \
python3-setuptools \
python3-wheel \
python3-tk \
python3-venv \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists

# retrieve source code
COPY . /vmaf

# install python requirements
RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir meson cython numpy

# setup environment
ENV PATH=/vmaf:/vmaf/libvmaf/build/tools:$PATH

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ VENV=.venv
.PHONY: all install clean distclean deps

all: deps
meson setup libvmaf/build libvmaf --buildtype release -Denable_float=true && \
ninja -vC libvmaf/build && \
$(VENV)/bin/meson setup libvmaf/build libvmaf --buildtype release -Denable_float=true && \
$(VENV)/bin/ninja -vC libvmaf/build && \
cd python && \
../$(VENV)/bin/python setup.py build_ext --build-lib .

install: deps
meson setup libvmaf/build libvmaf --buildtype release && \
ninja -vC libvmaf/build install
$(VENV)/bin/meson setup libvmaf/build libvmaf --buildtype release && \
$(VENV)/bin/ninja -vC libvmaf/build install

clean:
rm -rf libvmaf/build
Expand Down

0 comments on commit ece4a99

Please sign in to comment.