forked from Gitlink/gitlink_help_center
8 lines
500 B
Docker
8 lines
500 B
Docker
FROM crpi-3vrif0lgpchh92c8.cn-hangzhou.personal.cr.aliyuncs.com/ylly/node:20-alpine
|
|
WORKDIR /gitlink_help_center
|
|
COPY ./ /gitlink_help_center/
|
|
RUN npm install --legacy-peer-deps
|
|
RUN mkdir -p node_modules/webpackbar && echo '{"name":"webpackbar","version":"0.0.0","main":"index.js"}' > node_modules/webpackbar/package.json && echo 'class WebpackBar{constructor(){}apply(){}}module.exports=WebpackBar;' > node_modules/webpackbar/index.js
|
|
RUN npm run build -- --locale zh-cn
|
|
CMD ["npm", "run", "serve"]
|