Fernando Sánchez
12/23/2022, 11:01 AMzamas_next | + scripts/replace-placeholder.sh
zamas_next | Nothing to replace, the value is already set to .
zamas_next | + yarn build
zamas_next | yarn run v1.22.19
zamas_next | $ turbo run build --filter=@calcom/web...
zamas_next | WARNING cannot find a .git folder. Falling back to manual file hashing (which may be slower). If you are running this build in a pruned directory, you can ignore this message. Otherwise, please initialize a git repos
itory in the root of your monorepo
zamas_next | • Packages in scope:
zamas_next | • Running build in 0 packages
zamas_next |
zamas_next | Tasks: 0 successful, 0 total
zamas_next | Cached: 0 cached, 0 total
zamas_next | Time: 2.963s
zamas_next |
zamas_next | Done in 5.17s.
zamas_next | yarn run v1.22.19
zamas_next | $ turbo run start --scope="@calcom/web"
zamas_next | • Packages in scope:
zamas_next |
zamas_next | Tasks: 0 successful, 0 total
zamas_next | Cached: 0 cached, 0 total
zamas_next | Time: 107ms
Has anyone experienced this issue?
This is my dockerfile
FROM node:16 as builder
RUN mkdir -p /app
WORKDIR /app
ARG NEXTAUTH_SECRET=secret
ARG CALENDSO_ENCRYPTION_KEY=secret
ARG NEXTAUTH_URL='<https://scheduling.hrbotfactory.com>'
ARG MAX_OLD_SPACE_SIZE=4096
ENV NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \
CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY}
COPY package.json yarn.lock turbo.json ./
COPY packages ./packages
COPY apps/web ./apps/web
RUN yarn global add turbo && \
yarn config set network-timeout 1000000000 -g && \
turbo prune --scope=@calcom/web --docker && \
yarn --global-folder /tmp/yarn/ install
#RUN yarn turbo run build --filter=@calcom/web
FROM node:16 as runner
WORKDIR /app
ARG NEXT_PUBLIC_WEBAPP_URL=<http://localhost:3000>
#ENV NODE_ENV production
RUN apt-get update && \
apt-get -y install netcat && \
rm -rf /var/lib/apt/lists/* && \
npm install --global prisma
COPY package.json yarn.lock turbo.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/packages ./packages
COPY --from=builder /app/apps/web ./apps/web
COPY --from=builder /app/packages/prisma/schema.prisma ./prisma/schema.prisma
COPY scripts scripts
RUN scripts/replace-placeholder.sh <http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER> ${NEXT_PUBLIC_WEBAPP_URL}
#ENV NODE_ENV development
RUN chmod 777 -R /app/node_modules/.cache/*
RUN chmod 777 -R /app/node_modules/.cache/turbo
COPY .env ./
COPY .env.example ./
COPY .env.appStore.example ./
COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next ./apps/web
EXPOSE 3000
CMD ["/app/scripts/start.sh"]
start.sh file:
#!/bin/sh
set -x
# Replace the statically built BUILT_NEXT_PUBLIC_WEBAPP_URL with run-time NEXT_PUBLIC_WEBAPP_URL
# NOTE: if these values are the same, this will be skipped.
scripts/replace-placeholder.sh "$BUILT_NEXT_PUBLIC_WEBAPP_URL" "$NEXT_PUBLIC_WEBAPP_URL"
yarn build
yarn start