- 优化容器缓存清理逻辑,增加对Pacman和Yay缓存的清除。
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user