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