π₯π₯π₯ 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
refactor: optimize Dockerfile for web and space applications by refining COPY commands for static assets
Pratapa Lakshmi91c4047afd0e
diff --git a/space/Dockerfile.space b/space/Dockerfile.spaceindex ecb3fbec78..6809038145 100644--- a/space/Dockerfile.space+++ b/space/Dockerfile.space@@ -56,10 +56,10 @@ WORKDIR /appCOPY --from=installer /app/space/next.config.js .COPY --from=installer /app/space/package.json .-COPY --from=installer /app/space/.next/standalone ./--COPY --from=installer /app/space/.next ./space/.next-COPY --from=installer /app/space/public ./space/public+# Only bring in what's needed for standalone runtime+COPY --from=installer /app/space/.next/standalone ./+COPY --from=installer /app/space/.next/static ./.next/static+COPY --from=installer /app/space/public ./publicARG NEXT_PUBLIC_API_BASE_URL=""ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL@@ -82,4 +82,4 @@ ENV NEXT_PUBLIC_WEB_BASE_URL=$NEXT_PUBLIC_WEB_BASE_URLENV NEXT_TELEMETRY_DISABLED 1ENV TURBO_TELEMETRY_DISABLED 1-EXPOSE 3000+EXPOSE 3000\ No newline at end of filediff --git a/web/Dockerfile.web b/web/Dockerfile.webindex 56f931adc1..ab36fb9f16 100644--- a/web/Dockerfile.web+++ b/web/Dockerfile.web@@ -73,7 +73,7 @@ COPY --from=installer /app/web/package.json .# Automatically leverage output traces to reduce image size# https://nextjs.org/docs/advanced-features/output-file-tracingCOPY --from=installer /app/web/.next/standalone ./-COPY --from=installer /app/web/.next ./web/.next+COPY --from=installer /app/web/.next/static ./web/.next/staticCOPY --from=installer /app/web/public ./web/publicARG NEXT_PUBLIC_API_BASE_URL=""@@ -103,4 +103,4 @@ ENV NEXT_PUBLIC_WEB_BASE_URL=$NEXT_PUBLIC_WEB_BASE_URLENV NEXT_TELEMETRY_DISABLED 1ENV TURBO_TELEMETRY_DISABLED 1-EXPOSE 3000+EXPOSE 3000\ No newline at end of file