Fix Docker build for using napi-rs

This commit is contained in:
junderw
2023-07-06 18:05:21 -07:00
parent eae5f6078e
commit 925ebf08d4
4 changed files with 12 additions and 3 deletions

View File

@@ -7,7 +7,12 @@ WORKDIR /build
COPY . .
RUN apt-get update
RUN apt-get install -y build-essential python3 pkg-config
RUN apt-get install -y build-essential python3 pkg-config curl
# Install Rust via rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
ENV PATH="/root/.cargo/bin:$PATH"
RUN npm install --omit=dev --omit=optional
RUN npm run package