Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Copy public dir to dist failed #1684

Closed
coratgerl opened this issue Dec 21, 2024 · 2 comments · Fixed by web-infra-dev/rsbuild#4240
Closed

[Bug]: Copy public dir to dist failed #1684

coratgerl opened this issue Dec 21, 2024 · 2 comments · Fixed by web-infra-dev/rsbuild#4240
Labels
🐞 bug Something isn't working

Comments

@coratgerl
Copy link
Contributor

coratgerl commented Dec 21, 2024

Version

System:
    OS: macOS 15.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 56.58 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Brave Browser: 121.1.62.153
    Safari: 18.0

Details

I have an issue during the build of my project on docker. Seems the bug is fixed on last version of rsbuild, but maybe rspress need to update rsbuild version.

PR that seems to fix this : web-infra-dev/rsbuild#4220

[app-landing-builder 5/5] RUN bun run build:
0.242 $ rspress build
0.686 🔥 Rspress v1.38.0
0.686
1.206 EEXIST: Copy public dir (/app/docs/public) to dist failed:
1.206 File or folder exists
1.206 errno: -17
1.206 syscall: "mkdir"
1.206 path: "/app/doc_build"
1.206
1.208

Reproduce Steps

Here is my dockerfile:

FROM oven/bun:latest AS app-landing-builder
WORKDIR /app

COPY ./packages/app-landing .

RUN bun install --frozen-lockfile
RUN bun run build

FROM oven/bun:latest AS app-landing-runner
WORKDIR /app

# Copy built files from builder stage
COPY --from=app-landing-builder /app/node_modules ./node_modules
COPY --from=app-landing-builder /app/doc_build ./doc_build
COPY --from=app-landing-builder /app/package.json ./package.json
COPY --from=app-landing-builder /app/rspress.config.ts ./rspress.config.ts

CMD ["bun", "preview", "--port", "3001", "--host", "0.0.0.0"]
@coratgerl coratgerl added the 🐞 bug Something isn't working label Dec 21, 2024
@coratgerl coratgerl changed the title [Bug]: [Bug]: Copy public dir to dist failed Dec 21, 2024
@Timeless0911
Copy link
Contributor

Timeless0911 commented Dec 22, 2024

rspress 1.38.0 does not contain changes of web-infra-dev/rsbuild#4220, I think this should be an issue introduced in web-infra-dev/rsbuild#4220 since similar error appears in web-infra-dev/rslib#588 when we update Rsbuild.

@chenjiahan
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
3 participants