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

Bump node images to 16 that were missed previously (#1374) #1375

Merged
merged 1 commit into from Apr 27, 2022

Conversation

ssciolla
Copy link
Contributor

The PR aims to resolve #1374.

@ssciolla ssciolla added 🪳 bug Something isn't working dependencies Pull requests that update a dependency file labels Apr 27, 2022
@ssciolla ssciolla requested review from jonespm and zqian April 27, 2022 16:25
Comment on lines +26 to +30
WORKDIR /usr/src/app
COPY --from=node-webpack /usr/src/app /usr/src/app
RUN npm prune --production && \
# This is needed to clean up the examples files as these cause collectstatic to fail (and take up extra space)
find /usr/src/app/node_modules -type d -name "examples" -print0 | xargs -0 rm -rf
find node_modules -type d -name "examples" -print0 | xargs -0 rm -rf
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without changes, an error was being thrown. It seems to be related to this: https://stackoverflow.com/questions/57534295/npm-err-tracker-idealtree-already-exists-while-creating-the-docker-image-for Setting WORKDIR fixed the problem.

Copy link
Member

@jonespm jonespm left a comment

Choose a reason for hiding this comment

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

Thanks for updating and researching that issue @ssciolla

@ssciolla ssciolla merged commit 32682c0 into tl-its-umich-edu:master Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update node-14 still referenced in Dockerfile to 16
2 participants