fix Dockerfile: package manager from yarn->pnpm #761
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
现有的版本的Dockerfile在build的时候报错如下:
对比了一下README里面的安装描述发现已经使用了pnpm进行管理(去学习了一下npm,yarn,pnpm以及corepack,前端的版本管理真的是复杂和多变)
通过修改,此commit已经可以build和run~
BTW:后续打算优化一下Dockerfile,这里把secret敏感信息build到镜像里面不是一个好方式,没办法进行传播,应该build一个通用的image,可以对齐每个commit,大家可以在使用image的时候进行相关的初始化和部署~
新的一年决定切换到Strava,使用running page~