Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1d71113ce | ||
|
|
2c2e303667 | ||
|
|
566b205545 | ||
|
|
2d9e617da7 | ||
|
|
9fdd9b5043 | ||
|
|
95344d5b8e | ||
|
|
66479ad7e3 | ||
|
|
6eba41e7ad | ||
|
|
d7b9851d29 | ||
|
|
9ccc13f524 | ||
|
|
5f7a6ce637 | ||
|
|
87a2f7bc50 | ||
|
|
1ce3e40476 | ||
|
|
0e40ef9686 | ||
|
|
6fd9f27bff | ||
|
|
573a462e8d | ||
|
|
0ef4ff6acc | ||
|
|
50dc054e16 | ||
|
|
88f5c5507d | ||
|
|
dc14d4e4fd | ||
|
|
fd3bf3b54d | ||
|
|
11795cb920 | ||
|
|
3d72150f36 | ||
|
|
4a5f8e2ee8 | ||
|
|
85e5fb426b | ||
|
|
c9feaeade4 | ||
|
|
41dfc814a1 | ||
|
|
5517d5bea3 | ||
|
|
7d4c6263ce | ||
|
|
3dab184c3c | ||
|
|
0c3e5c7b75 | ||
|
|
9721b2b32e | ||
|
|
7c899622b5 | ||
| 5bd7a1e636 | |||
|
|
cca794f103 | ||
|
|
6da2131c5f | ||
|
|
97be50b673 | ||
|
|
7a298b2de3 |
13
Dockerfile
13
Dockerfile
@@ -1,4 +1,4 @@
|
|||||||
FROM node:18 as builder
|
FROM node:18 AS builder
|
||||||
|
|
||||||
WORKDIR /calcom
|
WORKDIR /calcom
|
||||||
|
|
||||||
@@ -29,11 +29,12 @@ 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 --docker
|
RUN npx turbo prune --scope=@calcom/web --scope=@calcom/trpc --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
|
||||||
|
|
||||||
@@ -41,12 +42,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
|
||||||
@@ -64,7 +65,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
|
||||||
@@ -73,7 +74,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 https://github.com/calcom/docker.git
|
git clone --recursive https://github.com/calcom/docker.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Change into the directory
|
2. Change into the directory
|
||||||
|
|||||||
2
calcom
2
calcom
Submodule calcom updated: 58315e96c9...2b5ea649d4
@@ -1,5 +1,4 @@
|
|||||||
# Use postgres/example user/password credentials
|
# Use postgres/example user/password credentials
|
||||||
version: '3.8'
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database-data:
|
database-data:
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ 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."
|
||||||
|
|
||||||
find apps/web/.next/ apps/web/public -type f |
|
for file in $(egrep -r -l "${FROM}" apps/web/.next/ apps/web/public/); do
|
||||||
while read file; do
|
sed -i -e "s|$FROM|$TO|g" "$file"
|
||||||
sed -i "s|$FROM|$TO|g" "$file"
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user