Skip to content

Commit 88cb9e7

Browse files
committed
Explicitly don't cache the install step for latest code.
1 parent ee86464 commit 88cb9e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

prototypes/basic/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ RUN jq 'del(.dependencies["@register-dynamics/importer"])' package.json > /tmp/p
2727
RUN mv /tmp/package.json .
2828

2929
# Explicitly load the latest version
30-
RUN npm install --save "https://gitpkg.vercel.app/register-dynamics/data-import/lib/importer?main"
30+
# The ADD command stops Docker from caching the subsequent RUN command
31+
ADD "https://gitpkg.vercel.app/register-dynamics/data-import/lib/importer?main" latest.tgz
32+
RUN npm install --save latest.tgz
3133
RUN npm install
3234

3335
# Copy application code

0 commit comments

Comments
 (0)