Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fixes web container public assets (#3336)

Manish Gupta0e49d616b70b
diff --git a/web/Dockerfile.web b/web/Dockerfile.web
index d9260e61d8..e0d525c2c2 100644
--- a/web/Dockerfile.web
+++ b/web/Dockerfile.web
@@ -1,3 +1,6 @@
+# ******************************************
+# STAGE 1: Build the project
+# ******************************************
FROM node:18-alpine AS builder
RUN apk add --no-cache libc6-compat
# Set working directory
@@ -8,6 +11,10 @@ COPY . .
RUN turbo prune --scope=web --docker
+
+# ******************************************
+# STAGE 2: Install dependencies & build the project
+# ******************************************
# Add lockfile and package.json's of isolated subworkspace
FROM node:18-alpine AS installer
@@ -31,6 +38,11 @@ ENV NEXT_PUBLIC_DEPLOY_URL=$NEXT_PUBLIC_DEPLOY_URL
RUN yarn turbo run build --filter=web
+
+# ******************************************
+# STAGE 3: Copy the project and start it
+# ******************************************
+
FROM node:18-alpine AS runner
WORKDIR /app
@@ -46,6 +58,7 @@ COPY --from=installer /app/web/package.json .
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=installer --chown=captain:plane /app/web/.next/standalone ./
COPY --from=installer --chown=captain:plane /app/web/.next ./web/.next
+COPY --from=installer --chown=captain:plane /app/web/public ./web/public
ARG NEXT_PUBLIC_API_BASE_URL=""
ARG NEXT_PUBLIC_DEPLOY_URL=""