From 30c71d62b2ab59600c0c01ccbe0cb85dcfb26895 Mon Sep 17 00:00:00 2001 From: zhaotao Date: Sun, 17 Jul 2022 09:37:13 +0800 Subject: [PATCH] =?UTF-8?q?package(docker):=20=E4=BF=AE=E5=A4=8Dwindows?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83=E4=B8=8B=E6=96=87=E4=BB=B6?= =?UTF-8?q?crlf=E9=A3=8E=E6=A0=BC=E5=AF=BC=E8=87=B4=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6ad5a10..86046e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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