package(docker): 修复windows开发环境下文件crlf风格导致构建失败问题

pull/131/head
zhaotao 2022-07-17 09:37:13 +08:00
parent d22be2dde0
commit 30c71d62b2
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@ WORKDIR /app
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 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
FROM node:18-alpine as prod