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

Install packages before copying rest of code in Dockerfile template #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dush-t
Copy link

@dush-t dush-t commented Mar 23, 2023

The Dockerfile was copying the package*.json files, then copying the entire rest of the code, and then installing the dependencies. This defeats the purpose of copying package*.json first, since the build step cache will be invalidated whenever the code changes.

This PR moves the install command above the code copy command.

P.S. I didn't see any contribution guidelines, sorry if this PR does not adhere to a required template.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant