summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2025-02-15 20:25:01 +0000
committerHunternif <hunternif@gmail.com>2025-02-15 21:20:29 +0000
commitf898d1b02d45af933c4ef75647085d270af78740 (patch)
tree8971780c6b70202947805fd6b5268e95ace930fc
parent8765fcb1c6ba5cbc8014a39deb8bf7e959ea2a08 (diff)
client: use dos2unix in Dockerfile to fix running on Windows
-rw-r--r--client/Dockerfile6
1 files changed, 5 insertions, 1 deletions
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