engineportf commited on
Commit
373b560
·
verified ·
1 Parent(s): 4e71534

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. Dockerfile.render +2 -2
Dockerfile CHANGED
@@ -23,8 +23,8 @@ WORKDIR $HOME/app
23
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
24
  COPY --chown=user . $HOME/app
25
 
26
- # Build the C++ extension
27
- RUN cd $HOME/app/cpp && cmake . && make && cp quant_engine_cpp*.so ../
28
 
29
  EXPOSE 7860
30
 
 
23
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
24
  COPY --chown=user . $HOME/app
25
 
26
+ # Build the C++ extension out-of-source (Eigen prohibits in-source builds)
27
+ RUN cd $HOME/app/cpp && mkdir build && cd build && cmake .. && make && cp quant_engine_cpp*.so ../../
28
 
29
  EXPOSE 7860
30
 
Dockerfile.render CHANGED
@@ -23,8 +23,8 @@ WORKDIR $HOME/app
23
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
24
  COPY --chown=user . $HOME/app
25
 
26
- # Build the C++ extension
27
- RUN cd $HOME/app/cpp && cmake . && make && cp quant_engine_cpp*.so ../
28
 
29
  # Use the Render assigned PORT
30
  CMD uvicorn app:app --host 0.0.0.0 --port $PORT
 
23
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
24
  COPY --chown=user . $HOME/app
25
 
26
+ # Build the C++ extension out-of-source (Eigen prohibits in-source builds)
27
+ RUN cd $HOME/app/cpp && mkdir build && cd build && cmake .. && make && cp quant_engine_cpp*.so ../../
28
 
29
  # Use the Render assigned PORT
30
  CMD uvicorn app:app --host 0.0.0.0 --port $PORT