Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Do not use cache when running apt-get
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsi committed Jun 12, 2023
1 parent c7a0b75 commit a779cd2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,18 @@ ENV RUST_BACKTRACE="1"
## set /run_fluence as the CMD binary
ENV S6_CMD_ARG0="/run_fluence"

RUN --mount=type=cache,target=/var/cache/apt \
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
jq \
less \
logrotate \
curl wget
curl wget && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*

# install missing libssl
COPY docker/install_libssl.sh /docker/install_libssl.sh
Expand Down Expand Up @@ -137,11 +142,16 @@ LABEL dev.fluence.image.bundles.geth="${GETH_VERSION}"
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor > /usr/share/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x focal main" > /etc/apt/sources.list.d/nodesource.list

RUN --mount=type=cache,target=/var/cache/apt \
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
musl \
nodejs
nodejs && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*

# install ceramic and glaze
RUN --mount=type=cache,target=/var/cache/npm \
Expand Down

0 comments on commit a779cd2

Please sign in to comment.