mirror of https://github.com/fantasticit/think.git
package(docker): 修复windows开发环境下文件crlf风格导致构建失败问题
parent
d22be2dde0
commit
30c71d62b2
|
@ -4,7 +4,9 @@ WORKDIR /app
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
||||||
RUN npm config set registry https://registry.npmmirror.com
|
RUN npm config set registry https://registry.npmmirror.com
|
||||||
RUN npm i -g pm2 @nestjs/cli pnpm
|
RUN npm i -g pm2 @nestjs/cli pnpm
|
||||||
RUN apk --no-cache add bash
|
RUN apk --no-cache add bash dos2unix \
|
||||||
|
&& find . -name "*.sh" -exec dos2unix {} \; \
|
||||||
|
&& apk del dos2unix
|
||||||
RUN bash build-output.sh
|
RUN bash build-output.sh
|
||||||
|
|
||||||
FROM node:18-alpine as prod
|
FROM node:18-alpine as prod
|
||||||
|
|
Loading…
Reference in New Issue