Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
070c731607 |
@@ -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/).
|
||||||
|
|||||||
17
Dockerfile
17
Dockerfile
@@ -1,4 +1,4 @@
|
|||||||
FROM node:18 AS builder
|
FROM node:18 as builder
|
||||||
|
|
||||||
WORKDIR /calcom
|
WORKDIR /calcom
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
|
|||||||
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE} \
|
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE} \
|
||||||
BUILD_STANDALONE=true
|
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,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,14 +41,14 @@ 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 ./
|
||||||
COPY calcom/.yarn ./.yarn
|
COPY calcom/.yarn ./.yarn
|
||||||
COPY --from=builder /calcom/yarn.lock ./yarn.lock
|
COPY --from=builder /calcom/yarn.lock ./yarn.lock
|
||||||
COPY --from=builder /calcom/node_modules ./node_modules
|
COPY --from=builder /calcom/node_modules ./node_modules
|
||||||
@@ -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 \
|
||||||
|
|||||||
@@ -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
2
calcom
Submodule calcom updated: 4e02fe4251...17f537774c
@@ -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:
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ services:
|
|||||||
|
|
||||||
databases:
|
databases:
|
||||||
- name: cal-postgres
|
- name: cal-postgres
|
||||||
plan: basic-1gb
|
plan: starter
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user