Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(Dockerfile): conditionally copy package manager lockfile #72

Closed
wants to merge 1 commit into from

Conversation

mcansh
Copy link
Contributor

@mcansh mcansh commented May 17, 2022

the stack doesn't come with a package-lock.json since #67 causing docker builds to fail, but the file will exist after create-remix

Dockerfile Outdated Show resolved Hide resolved
@mcansh mcansh force-pushed the mcansh-patch-1 branch 2 times, most recently from c8a23b0 to 8ce6113 Compare June 10, 2022 17:44
@mcansh mcansh changed the title chore(Dockerfile): use wildcard for package.json and package-lock.json chore(Dockerfile): conditionally copy package manager lockfile Jun 10, 2022
ADD package-lock.jso[n] yarn.loc[k] pnpm-lock.yam[l] pnpm-lock.ym[l] .pnpmfile.cj[s] ./
# the following script will install the dependencies with which ever lock file is available
ADD scripts/install-deps.sh ./install-deps.sh
RUN ./install-deps.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we have packageManager available in remix.init, shouldn't we just update remix.init to install dependencies & replace the npm references with the correct calls?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe? i'm not completely sold on that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way we keep all the packageManager related things in remix.init & the user of the stack doesn't need to know about it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Let's have remix.init handle this at project generation time.

@mcansh mcansh closed this Jun 13, 2022
@mcansh mcansh deleted the mcansh-patch-1 branch June 13, 2022 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants