Skip to content

Commit

Permalink
fix: 修复apt源未全覆盖问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wakefun committed Oct 15, 2024
1 parent 002f393 commit 463cb52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin

USER root
COPY --chown=root:root apt/bookworm.http /etc/apt/sources.list
COPY --chown=root:root apt/bookworm.http /etc/apt/sources.list.d/debian.sources
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates
COPY --chown=root:root apt/bookworm /etc/apt/sources.list
COPY --chown=root:root apt/bookworm /etc/apt/sources.list.d/debian.sources

USER node
RUN mkdir -p /home/node/node-cn
Expand Down
4 changes: 2 additions & 2 deletions 18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin

USER root
COPY --chown=root:root apt/bookworm.http /etc/apt/sources.list
COPY --chown=root:root apt/bookworm.http /etc/apt/sources.list.d/debian.sources
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates
COPY --chown=root:root apt/bookworm /etc/apt/sources.list
COPY --chown=root:root apt/bookworm /etc/apt/sources.list.d/debian.sources

USER node
RUN mkdir -p /home/node/node-cn
Expand Down
4 changes: 2 additions & 2 deletions 20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin

USER root
COPY --chown=root:root apt/bookworm.http /etc/apt/sources.list
COPY --chown=root:root apt/bookworm.http /etc/apt/sources.list.d/debian.sources
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates
COPY --chown=root:root apt/bookworm /etc/apt/sources.list
COPY --chown=root:root apt/bookworm /etc/apt/sources.list.d/debian.sources

USER node
RUN mkdir -p /home/node/node-cn
Expand Down

0 comments on commit 463cb52

Please sign in to comment.