mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fixes web container public assets (#3336)
This commit is contained in:
parent
d887b780ae
commit
2580e66d4b
@ -1,3 +1,6 @@
|
|||||||
|
# ******************************************
|
||||||
|
# STAGE 1: Build the project
|
||||||
|
# ******************************************
|
||||||
FROM node:18-alpine AS builder
|
FROM node:18-alpine AS builder
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
# Set working directory
|
# Set working directory
|
||||||
@ -8,6 +11,10 @@ COPY . .
|
|||||||
|
|
||||||
RUN turbo prune --scope=web --docker
|
RUN turbo prune --scope=web --docker
|
||||||
|
|
||||||
|
|
||||||
|
# ******************************************
|
||||||
|
# STAGE 2: Install dependencies & build the project
|
||||||
|
# ******************************************
|
||||||
# Add lockfile and package.json's of isolated subworkspace
|
# Add lockfile and package.json's of isolated subworkspace
|
||||||
FROM node:18-alpine AS installer
|
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
|
RUN yarn turbo run build --filter=web
|
||||||
|
|
||||||
|
|
||||||
|
# ******************************************
|
||||||
|
# STAGE 3: Copy the project and start it
|
||||||
|
# ******************************************
|
||||||
|
|
||||||
FROM node:18-alpine AS runner
|
FROM node:18-alpine AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -46,6 +58,7 @@ COPY --from=installer /app/web/package.json .
|
|||||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
# 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/standalone ./
|
||||||
COPY --from=installer --chown=captain:plane /app/web/.next ./web/.next
|
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_API_BASE_URL=""
|
||||||
ARG NEXT_PUBLIC_DEPLOY_URL=""
|
ARG NEXT_PUBLIC_DEPLOY_URL=""
|
||||||
|
Loading…
Reference in New Issue
Block a user