Compare commits

..

1 Commits

Author SHA1 Message Date
actions-user
ec744ac64a tag version Cal.com version v5.2.1 2025-04-17 00:07:16 +00:00
5 changed files with 12 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
FROM node:18 AS builder FROM node:18 as builder
WORKDIR /calcom WORKDIR /calcom
@@ -29,12 +29,11 @@ COPY calcom/packages ./packages
COPY calcom/tests ./tests COPY calcom/tests ./tests
RUN yarn config set httpTimeout 1200000 RUN yarn config set httpTimeout 1200000
RUN npx turbo prune --scope=@calcom/web --scope=@calcom/trpc --docker RUN npx turbo prune --scope=@calcom/web --docker
RUN yarn install RUN yarn install
RUN yarn db-deploy RUN yarn db-deploy
RUN yarn --cwd packages/prisma seed-app-store RUN yarn --cwd packages/prisma seed-app-store
# Build and make embed servable from web/public/embed folder # Build and make embed servable from web/public/embed folder
RUN yarn workspace @calcom/trpc run build
RUN yarn --cwd packages/embeds/embed-core workspace @calcom/embed-core run build RUN yarn --cwd packages/embeds/embed-core workspace @calcom/embed-core run build
RUN yarn --cwd apps/web workspace @calcom/web run build RUN yarn --cwd apps/web workspace @calcom/web run build
@@ -42,12 +41,12 @@ RUN yarn --cwd apps/web workspace @calcom/web run build
# yarn workspaces focus --all --production # yarn workspaces focus --all --production
RUN rm -rf node_modules/.cache .yarn/cache apps/web/.next/cache RUN rm -rf node_modules/.cache .yarn/cache apps/web/.next/cache
FROM node:18 AS builder-two FROM node:18 as builder-two
WORKDIR /calcom WORKDIR /calcom
ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000 ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
ENV NODE_ENV=production ENV NODE_ENV production
COPY calcom/package.json calcom/.yarnrc.yml calcom/turbo.json calcom/i18n.json ./ COPY calcom/package.json calcom/.yarnrc.yml calcom/turbo.json calcom/i18n.json ./
COPY calcom/.yarn ./.yarn COPY calcom/.yarn ./.yarn
@@ -65,7 +64,7 @@ ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
RUN scripts/replace-placeholder.sh http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER ${NEXT_PUBLIC_WEBAPP_URL} RUN scripts/replace-placeholder.sh http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER ${NEXT_PUBLIC_WEBAPP_URL}
FROM node:18 AS runner FROM node:18 as runner
WORKDIR /calcom WORKDIR /calcom
@@ -74,7 +73,7 @@ ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \ ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
BUILT_NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL BUILT_NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL
ENV NODE_ENV=production ENV NODE_ENV production
EXPOSE 3000 EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=30s --retries=5 \ HEALTHCHECK --interval=30s --timeout=30s --retries=5 \

View File

@@ -52,7 +52,7 @@ If you are evaluating Cal.com or running with minimal to no modifications, this
1. Clone calcom/docker 1. Clone calcom/docker
```bash ```bash
git clone --recursive https://github.com/calcom/docker.git git clone https://github.com/calcom/docker.git
``` ```
2. Change into the directory 2. Change into the directory

2
calcom

Submodule calcom updated: 4e02fe4251...cae8470350

View File

@@ -1,4 +1,5 @@
# Use postgres/example user/password credentials # Use postgres/example user/password credentials
version: '3.8'
volumes: volumes:
database-data: database-data:

View File

@@ -10,6 +10,7 @@ fi
# Only peform action if $FROM and $TO are different. # Only peform action if $FROM and $TO are different.
echo "Replacing all statically built instances of $FROM with $TO." echo "Replacing all statically built instances of $FROM with $TO."
for file in $(egrep -r -l "${FROM}" apps/web/.next/ apps/web/public/); do find apps/web/.next/ apps/web/public -type f |
sed -i -e "s|$FROM|$TO|g" "$file" while read file; do
sed -i "s|$FROM|$TO|g" "$file"
done done