This commit is contained in:
parent
1ac21c3e7a
commit
699abc7577
@ -40,8 +40,13 @@ steps:
|
||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
||||
commands:
|
||||
- cd calcom
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn build
|
||||
- yarn config set httpTimeout 1200000
|
||||
- npx turbo prune --scope=@calcom/web --docker
|
||||
- yarn install
|
||||
- yarn db-deploy
|
||||
- yarn --cwd packages/prisma seed-app-store
|
||||
- yarn turbo run build --filter=@calcom/web
|
||||
- rm -rf node_modules/.cache .yarn/cache apps/web/.next/cache
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
|
||||
20
Dockerfile
20
Dockerfile
@ -1,19 +1,15 @@
|
||||
FROM node:16 as runner
|
||||
FROM node:18 as runner
|
||||
|
||||
WORKDIR /calcom
|
||||
ENV NODE_ENV production
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y install netcat && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
npm install --global prisma
|
||||
|
||||
COPY calcom/package.json calcom/yarn.lock calcom/turbo.json /calcom/
|
||||
COPY calcom/node_modules /calcom/node_modules
|
||||
COPY calcom/packages /calcom/packages
|
||||
COPY calcom/apps/web /calcom/apps/web
|
||||
COPY calcom/packages/prisma/schema.prisma /calcom/prisma/schema.prisma
|
||||
COPY docker/scripts /calcom/scripts
|
||||
COPY calcom/package.json calcom/.yarnrc.yml calcom/yarn.lock calcom/turbo.json /calcom/
|
||||
COPY calcom/.yarn /calcom/.yarn
|
||||
COPY /calcom/node_modules /calcom/node_modules
|
||||
COPY /calcom/packages /calcom/packages
|
||||
COPY /calcom/apps/web /calcom/apps/web
|
||||
COPY /calcom/packages/prisma/schema.prisma /calcom/prisma/schema.prisma
|
||||
COPY scripts scripts
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["/calcom/scripts/start.sh"]
|
||||
Loading…
Reference in New Issue
Block a user