From f898d1b02d45af933c4ef75647085d270af78740 Mon Sep 17 00:00:00 2001 From: Hunternif Date: Sat, 15 Feb 2025 20:25:01 +0000 Subject: client: use dos2unix in Dockerfile to fix running on Windows --- client/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/Dockerfile b/client/Dockerfile index 35b83c2..1e3926d 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -11,9 +11,13 @@ ARG CLIENT_BUILD_ARGS="--debug" RUN BASE_URL="__BASEURL__" node build.js --gzip ${CLIENT_BUILD_ARGS} -FROM --platform=$BUILDPLATFORM scratch as approot +FROM --platform=$BUILDPLATFORM nginx:alpine as approot +# Copy and fix script COPY docker-start.sh / +RUN apk add --no-cache dos2unix && \ + dos2unix /docker-start.sh && \ + chmod +x /docker-start.sh WORKDIR /etc/nginx COPY nginx.conf.docker ./nginx.conf -- cgit v1.3