Skip to content

Commit

Permalink
Update yarn configuration and add frozen lockfile
Browse files Browse the repository at this point in the history
option
  • Loading branch information
n4ze3m committed Nov 18, 2023
1 parent a554139 commit 190bb2a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ RUN apt update

COPY ./server/ .

RUN yarn install
RUN yarn config set registry https://registry.npmjs.org/
RUN yarn config set network-timeout 1200000
RUN yarn install --frozen-lockfile

RUN yarn build

Expand All @@ -24,6 +26,9 @@ RUN pnpm build
FROM node:18
WORKDIR /app

RUN yarn config set registry https://registry.npmjs.org/
RUN yarn config set network-timeout 1200000

RUN apt update && apt -y install --no-install-recommends ca-certificates git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN npm --no-update-notifier --no-fund --global install pnpm
Expand All @@ -39,7 +44,7 @@ COPY --from=build /app/app/widget/dist/index.html ./public/bot.html
# Copy script
COPY --from=build /app/app/script/dist/chat.min.js ./public/chat.min.js

RUN yarn install --production
RUN yarn install --production --frozen-lockfile

ENV NODE_ENV=production

Expand Down

0 comments on commit 190bb2a

Please sign in to comment.