Rajhuggingface4253 commited on
Commit
a149ef8
·
verified ·
1 Parent(s): d1a4fbd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -7,7 +7,10 @@ WORKDIR /app
7
  RUN apt-get update && apt-get install -y --no-install-recommends git cmake build-essential libopencv-dev libgomp1 wget ca-certificates ocl-icd-opencl-dev opencl-headers pocl-opencl-icd && rm -rf /var/lib/apt/lists/*
8
 
9
  # Build waifu2x-converter-cpp from source
10
- RUN git clone --depth 1 https://github.com/DeadSix27/waifu2x-converter-cpp.git /tmp/waifu2x && cd /tmp/waifu2x && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j$(nproc) && cp waifu2x-converter-cpp /app/ && mkdir -p /app/models && cp -r ../models_rgb/* /app/models/ && rm -rf /tmp/waifu2x && apt-get purge -y git cmake build-essential && apt-get autoremove -y && apt-get clean
 
 
 
11
 
12
  # Verify the executable works
13
  RUN chmod +x /app/waifu2x-converter-cpp
 
7
  RUN apt-get update && apt-get install -y --no-install-recommends git cmake build-essential libopencv-dev libgomp1 wget ca-certificates ocl-icd-opencl-dev opencl-headers pocl-opencl-icd && rm -rf /var/lib/apt/lists/*
8
 
9
  # Build waifu2x-converter-cpp from source
10
+ RUN git clone --depth 1 https://github.com/DeadSix27/waifu2x-converter-cpp.git /tmp/waifu2x && cd /tmp/waifu2x && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j$(nproc) && cp waifu2x-converter-cpp /app/ && cp libw2xc.so /app/ && mkdir -p /app/models && cp -r ../models_rgb/* /app/models/ && rm -rf /tmp/waifu2x && apt-get purge -y git cmake build-essential && apt-get autoremove -y && apt-get clean
11
+
12
+ # Set library path so the executable can find libw2xc.so
13
+ ENV LD_LIBRARY_PATH=/app:$LD_LIBRARY_PATH
14
 
15
  # Verify the executable works
16
  RUN chmod +x /app/waifu2x-converter-cpp