mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Fix Docker build issues with yarn / next /node (#859)
* Rollback node version being installed from nodesource to node 20
This commit is contained in:
parent
1af9dbb083
commit
e694c82343
2 changed files with 12 additions and 12 deletions
12
Dockerfile
12
Dockerfile
|
@ -7,12 +7,12 @@ LABEL org.opencontainers.image.source="https://github.com/khoj-ai/khoj"
|
||||||
# Install System Dependencies
|
# Install System Dependencies
|
||||||
RUN apt update -y && apt -y install python3-pip swig curl
|
RUN apt update -y && apt -y install python3-pip swig curl
|
||||||
|
|
||||||
# Install Node.js and Yarn using nvm in a single RUN instruction
|
# Install Node.js and Yarn
|
||||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - && \
|
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
export NVM_DIR="$HOME/.nvm" && \
|
RUN apt -y install nodejs
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||||
nvm install 20 && \
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||||
npm install --global yarn
|
RUN apt update && apt -y install yarn
|
||||||
|
|
||||||
# Install RapidOCR dependencies
|
# Install RapidOCR dependencies
|
||||||
RUN apt -y install libgl1 libgl1-mesa-glx libglib2.0-0
|
RUN apt -y install libgl1 libgl1-mesa-glx libglib2.0-0
|
||||||
|
|
|
@ -5,12 +5,12 @@ LABEL org.opencontainers.image.source="https://github.com/khoj-ai/khoj"
|
||||||
# Install System Dependencies
|
# Install System Dependencies
|
||||||
RUN apt update -y && apt -y install python3-pip libsqlite3-0 ffmpeg libsm6 libxext6 swig curl
|
RUN apt update -y && apt -y install python3-pip libsqlite3-0 ffmpeg libsm6 libxext6 swig curl
|
||||||
|
|
||||||
# Install Node.js and Yarn using nvm in a single RUN instruction
|
# Install Node.js and Yarn
|
||||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - && \
|
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
export NVM_DIR="$HOME/.nvm" && \
|
RUN apt -y install nodejs
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||||
nvm install 20 && \
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||||
npm install --global yarn
|
RUN apt update && apt -y install yarn
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue