summaryrefslogtreecommitdiff
path: root/client/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'client/Dockerfile')
-rw-r--r--client/Dockerfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/Dockerfile b/client/Dockerfile
index ea5151f..1e3926d 100644
--- a/client/Dockerfile
+++ b/client/Dockerfile
@@ -7,13 +7,17 @@ RUN npm install
COPY . ./
ARG BUILD_INFO="docker-latest"
-ARG CLIENT_BUILD_ARGS=""
+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