try fix build errors

This commit is contained in:
stone-w4tch3r
2024-07-29 20:56:33 +05:00
parent 4a57edcda4
commit 6e3a483257

View File

@@ -42,16 +42,16 @@ RUN --mount=type=cache,target=/var/cache/apt \
COPY . /pake
WORKDIR /pake
# Install dependencies and build pake-cli
RUN --mount=type=cache,target=/root/.npm \
npm install && \
npm run build
# Copy Rust build artifacts
COPY --from=cargo-builder /pake/src-tauri /pake/src-tauri
COPY --from=cargo-builder /cargo-cache/git /usr/local/cargo/git
COPY --from=cargo-builder /cargo-cache/registry /usr/local/cargo/registry
# Install dependencies and build pake-cli
RUN --mount=type=cache,target=/root/.npm \
npm install && \
npm run build
# Set up the entrypoint
WORKDIR /output
ENTRYPOINT ["node", "/pake/cli.js"]