Skip to content

Commit

Permalink
reduce noise
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed May 31, 2023
1 parent bba38c2 commit c104e96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ COPY --from=go /rod/rod-manager /usr/bin/
ARG apt_sources="http://archive.ubuntu.com"

RUN sed -i "s|http://archive.ubuntu.com|$apt_sources|g" /etc/apt/sources.list && \
apt-get -qq update && \
apt-get -qq install --no-install-recommends -y \
apt-get update > /dev/null && \
apt-get install --no-install-recommends -y \
# chromium dependencies
libnss3 \
libxss1 \
Expand All @@ -43,8 +43,9 @@ RUN sed -i "s|http://archive.ubuntu.com|$apt_sources|g" /etc/apt/sources.list &&
dumb-init \
# headful mode support, for example: $ xvfb-run chromium-browser --remote-debugging-port=9222
xvfb \
> /dev/null && \
# cleanup
&& rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*

# process reaper
ENTRYPOINT ["dumb-init", "--"]
Expand Down
3 changes: 2 additions & 1 deletion lib/docker/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ARG golang
ARG apt_sources="http://archive.ubuntu.com"

RUN sed -i "s|http://archive.ubuntu.com|$apt_sources|g" /etc/apt/sources.list && \
apt-get update && apt-get install --no-install-recommends -y git curl xz-utils build-essential && \
apt-get update > /dev/null && \
apt-get install --no-install-recommends -y git curl xz-utils build-essential > /dev/null && \
rm -rf /var/lib/apt/lists/*

# install nodejs
Expand Down

0 comments on commit c104e96

Please sign in to comment.