Skip to content

Commit

Permalink
Update Dockerfile and GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
n4ze3m committed Nov 18, 2023
1 parent 7cb6659 commit bbf5ea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
tags: |
n4z3m/dialoqbase-next:latest
push: true
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM node:18-slim as server
FROM node:18 as server

WORKDIR /app

RUN apt update

COPY ./server/ .

RUN yarn install --network-timeout 10000000
RUN yarn install

RUN yarn build

FROM node:18-slim as build
FROM node:18 as build
WORKDIR /app

RUN apt update
Expand All @@ -21,7 +21,7 @@ RUN pnpm install

RUN pnpm build

FROM node:18-slim
FROM node:18
WORKDIR /app

RUN apt update && apt -y install --no-install-recommends ca-certificates git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3
Expand All @@ -39,7 +39,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 --network-timeout 10000000
RUN yarn install --production

ENV NODE_ENV=production

Expand Down

0 comments on commit bbf5ea6

Please sign in to comment.