From 7f9198711154a85787b3937f3772d224bbc1f12c Mon Sep 17 00:00:00 2001 From: Gerwin Bosch Date: Tue, 26 Mar 2024 17:01:40 +0100 Subject: [PATCH] Revert dockerfile to yarn --- docker/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 13c28b3..d945192 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,15 +4,17 @@ RUN apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python3 git WORKDIR /app COPY package.json ./ -COPY package-lock.json ./ -RUN npm ci +COPY yarn.lock ./ +COPY .yarn ./app/ +COPY .yarnrc ./app/ +RUN yarn COPY . . -RUN npm run build --omit=dev +RUN yarn build ARG CONFIG_FILE - -RUN npm exec ldwizard-build ${CONFIG_FILE} +# RUN yarn add "@pldn/ldwizard" +RUN yarn ldwizard-build ${CONFIG_FILE} FROM nginx:stable-alpine