π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
feat: optimize docker builds for live server (#7334)
sriram veeraghanta1de95ef0d021
diff --git a/apps/live/Dockerfile.live b/apps/live/Dockerfile.liveindex ae9eba9d14..5bec2624cc 100644--- a/apps/live/Dockerfile.live+++ b/apps/live/Dockerfile.live@@ -2,6 +2,9 @@ FROM node:20-alpine AS base# The web Dockerfile is copy-pasted into our main docs at /docs/handbook/deploying-with-docker.# Make sure you update this Dockerfile, the Dockerfile in the web workspace and copy that over to Dockerfile in the docs.+# *****************************************************************************+# STAGE 1: Prune the project+# *****************************************************************************FROM base AS builder# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.RUN apk update@@ -12,6 +15,9 @@ RUN yarn global add turboCOPY . .RUN turbo prune live --docker+# *****************************************************************************+# STAGE 2: Install dependencies & build the project+# *****************************************************************************# Add lockfile and package.json's of isolated subworkspaceFROM base AS installerRUN apk update@@ -28,16 +34,21 @@ RUN yarn installCOPY --from=builder /app/out/full/ .COPY turbo.json turbo.json-ENV TURBO_TELEMETRY_DISABLED 1+ENV TURBO_TELEMETRY_DISABLED=1RUN yarn turbo build --filter=live+# *****************************************************************************+# STAGE 3: Run the project+# *****************************************************************************+FROM base AS runnerWORKDIR /app-COPY --from=installer /app .-# COPY --from=installer /app/live/node_modules ./node_modules+COPY --from=installer /app/packages ./packages+COPY --from=installer /app/apps/live/dist ./live+COPY --from=installer /app/node_modules ./node_modules-ENV TURBO_TELEMETRY_DISABLED 1+ENV TURBO_TELEMETRY_DISABLED=1EXPOSE 3000