Compare commits

..

1 Commits

Author SHA1 Message Date
actions-user
a5ecc3a29c tag version Cal.com version v4.2.0 2024-06-18 20:00:31 +00:00
7 changed files with 16 additions and 20 deletions

View File

@@ -51,7 +51,6 @@ ZOOM_CLIENT_SECRET=
# E-mail settings # E-mail settings
# Configures the global From: header whilst sending emails. # Configures the global From: header whilst sending emails.
EMAIL_FROM_NAME=YourOrganizationName
EMAIL_FROM=notifications@example.com EMAIL_FROM=notifications@example.com
# Configure SMTP settings (@see https://nodemailer.com/smtp/). # Configure SMTP settings (@see https://nodemailer.com/smtp/).

View File

@@ -1,4 +1,4 @@
FROM node:18 AS builder FROM node:18 as builder
WORKDIR /calcom WORKDIR /calcom
@@ -18,10 +18,9 @@ ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
DATABASE_DIRECT_URL=$DATABASE_URL \ DATABASE_DIRECT_URL=$DATABASE_URL \
NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \ NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \
CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} \ CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} \
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE} \ NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE}
BUILD_STANDALONE=true
COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/git-init.sh calcom/git-setup.sh calcom/i18n.json ./ COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/git-init.sh calcom/git-setup.sh ./
COPY calcom/.yarn ./.yarn COPY calcom/.yarn ./.yarn
COPY calcom/apps/web ./apps/web COPY calcom/apps/web ./apps/web
COPY calcom/apps/api/v2 ./apps/api/v2 COPY calcom/apps/api/v2 ./apps/api/v2
@@ -29,29 +28,25 @@ 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
RUN yarn workspace @calcom/trpc 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
# RUN yarn plugin import workspace-tools && \ # RUN yarn plugin import workspace-tools && \
# 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/yarn.lock calcom/turbo.json ./
COPY calcom/.yarn ./.yarn COPY calcom/.yarn ./.yarn
COPY --from=builder /calcom/yarn.lock ./yarn.lock
COPY --from=builder /calcom/node_modules ./node_modules COPY --from=builder /calcom/node_modules ./node_modules
COPY --from=builder /calcom/packages ./packages COPY --from=builder /calcom/packages ./packages
COPY --from=builder /calcom/apps/web ./apps/web COPY --from=builder /calcom/apps/web ./apps/web
@@ -65,7 +60,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 +69,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: d15490d5aa...87d2ec9e75

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

@@ -23,4 +23,4 @@ services:
databases: databases:
- name: cal-postgres - name: cal-postgres
plan: basic-1gb plan: starter

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