Skip to content

Commit

Permalink
fix(docker): fix apt install failed (#13873) (#13910)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjw806 authored Dec 11, 2023
1 parent 6640a94 commit 0bc2da2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \

FROM base AS dashboard-builder

RUN apt-get install -y curl gnupg protobuf-compiler && mkdir -p /etc/apt/keyrings \
RUN apt-get update && apt-get install -y curl gnupg protobuf-compiler && mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update && apt-get install -y nodejs
Expand All @@ -19,7 +19,7 @@ RUN cd /risingwave/dashboard && npm i && npm run build-static && rm -rf node_mod

FROM base AS rust-base

RUN apt-get -y install make cmake protobuf-compiler curl bash lld unzip
RUN apt-get update && apt-get -y install make cmake protobuf-compiler curl bash lld unzip

SHELL ["/bin/bash", "-c"]

Expand Down Expand Up @@ -90,7 +90,7 @@ RUN find . -name pom.xml -exec bash -c 'mkdir -p poms/$(dirname {}); mv {} poms/
# We use rust-maven-plugin to build java-binding. So it's FROM rust-base
FROM rust-base AS java-builder

RUN apt-get -y install maven
RUN apt-get update && apt-get -y install maven

RUN mkdir -p /risingwave
WORKDIR /risingwave/java
Expand Down

0 comments on commit 0bc2da2

Please sign in to comment.