Skip to content

Commit ff81b36

Browse files
committed
Move npm cache to a temp directory
1 parent 4e71aac commit ff81b36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/dev_env/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ ENV HOME="/opt"
1818
ENV PDM_PYTHONS="${HOME}/pdm/bin"
1919
# location where `n` installs Node.js versions
2020
ENV N_PREFIX="${HOME}/n"
21+
# location for `npm`'s cache
22+
ENV NPM_CONFIG_CACHE="/tmp/.npm/"
2123

2224
ENV PIPX_GLOBAL_HOME=/pipx
2325

@@ -52,7 +54,6 @@ ENV PATH="${PNPM_BIN}:${N_PREFIX}/bin:${PDM_PYTHONS}:${HOME}/.local/bin:${PATH}"
5254
# - n: Node.js distribution manager
5355
# - corepack: Node.js package-manager-manager
5456
RUN mkdir /pipx \
55-
&& mkdir /opt/.npm \
5657
&& dnf5 -y install dnf-plugins-core \
5758
&& dnf5 -y config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo \
5859
&& dnf5 -y install https://dl.k6.io/rpm/repo.rpm \

0 commit comments

Comments
 (0)