diff --git a/Dockerfile b/Dockerfile index f4167d8..e4271f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,12 @@ RUN pacman -Syu --noconfirm git cmake python nodejs && \ FROM greyltc/archlinux-aur:yay AS runner WORKDIR /app -RUN aur-install bun-bin wechat-bin && \ - pacman -Scc --noconfirm && \ - rm -rf /var/cache/makepkg/* /tmp/* /var/log/* COPY . . COPY --from=lib /src/wcocr/build/libwcocr.so . -RUN bun install --frozen-lockfile +RUN aur-install bun-bin wechat-bin && \ + pacman -Scc --noconfirm && rm -rf /var/cache/pacman/pkg/* && \ + yay -Scc --noconfirm && rm -rf $HOME/.cache/yay/* && \ + bun install --frozen-lockfile EXPOSE 3000