Skip to content

Commit

Permalink
Revert dockerfile to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
GerwinBosch committed Mar 26, 2024
1 parent 0952861 commit 7f91987
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f91987

Please sign in to comment.