try fix build errors
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -42,16 +42,16 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
|||||||
COPY . /pake
|
COPY . /pake
|
||||||
WORKDIR /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 Rust build artifacts
|
||||||
COPY --from=cargo-builder /pake/src-tauri /pake/src-tauri
|
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/git /usr/local/cargo/git
|
||||||
COPY --from=cargo-builder /cargo-cache/registry /usr/local/cargo/registry
|
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
|
# Set up the entrypoint
|
||||||
WORKDIR /output
|
WORKDIR /output
|
||||||
ENTRYPOINT ["node", "/pake/cli.js"]
|
ENTRYPOINT ["node", "/pake/cli.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user