mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
* Enhance CI workflows: Add AIO build support and manifest management - Introduced `mark_manifest_latest` input to control manifest versioning in `appliance-docker-ee.yml`. - Updated paths in `appliance-docker-ee.yml` for consistency with new directory structure. - Removed obsolete `build-aio-branch-ee.yml` workflow. - Added `aio_build` input to `build-branch-ee.yml` for AIO image builds. - Updated various build jobs to utilize new AIO build logic and dependencies. - Refactored paths in `build-branch-ee.yml` for improved clarity and organization. - Updated Dockerfile for proxy to use specific versions of dependencies. * fix: update build script invocation in CI workflow - Changed the invocation of the build script in `build-branch-ee.yml` to use `bash` for improved compatibility. * fix: update artifact upload condition and correct file path in build script - Modified the condition for uploading artifacts to S3 in `build-branch-ee.yml` to include airgapped builds. - Corrected the file path for the Caddyfile in `build.sh` to reflect the new directory structure. * refactor: enhance artifact uploads and remove deprecated scripts - Added multiple artifact uploads in `build-branch-ee.yml` for `docker-compose.yml`, `coolify-compose.yml`, `portainer-compose.yml`, `swarm-compose.yml`, and `variables.env`. - Deleted obsolete scripts and configuration files related to airgapped deployment, including `build.sh`, `install.sh`, and various YAML files in the `cli-install` and `airgapped` directories. - Updated CI workflow to streamline artifact management and improve deployment processes. * refactor: remove deprecated artifact upload for swarm-compose.yml in CI workflow - Eliminated the upload step for `swarm-compose.yml` in `build-branch-ee.yml` to streamline artifact management and reduce redundancy. * fix: consistent node version across all docker files --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
113 lines
3.5 KiB
Docker
113 lines
3.5 KiB
Docker
FROM node:22-alpine AS base
|
|
|
|
# *****************************************************************************
|
|
# STAGE 1: Build the project
|
|
# *****************************************************************************
|
|
FROM base AS builder
|
|
RUN apk add --no-cache libc6-compat
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
RUN yarn global add turbo
|
|
COPY . .
|
|
|
|
RUN turbo prune --scope=web --docker
|
|
|
|
# *****************************************************************************
|
|
# STAGE 2: Install dependencies & build the project
|
|
# *****************************************************************************
|
|
# Add lockfile and package.json's of isolated subworkspace
|
|
FROM base AS installer
|
|
|
|
RUN apk add --no-cache libc6-compat
|
|
WORKDIR /app
|
|
|
|
# First install the dependencies (as they change less often)
|
|
COPY .gitignore .gitignore
|
|
COPY --from=builder /app/out/json/ .
|
|
COPY --from=builder /app/out/yarn.lock ./yarn.lock
|
|
RUN yarn install --network-timeout 500000
|
|
|
|
# Build the project
|
|
COPY --from=builder /app/out/full/ .
|
|
COPY turbo.json turbo.json
|
|
|
|
ARG NEXT_PUBLIC_API_BASE_URL=""
|
|
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_ADMIN_BASE_URL=""
|
|
ENV NEXT_PUBLIC_ADMIN_BASE_URL=$NEXT_PUBLIC_ADMIN_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_ADMIN_BASE_PATH="/god-mode"
|
|
ENV NEXT_PUBLIC_ADMIN_BASE_PATH=$NEXT_PUBLIC_ADMIN_BASE_PATH
|
|
|
|
ARG NEXT_PUBLIC_LIVE_BASE_URL=""
|
|
ENV NEXT_PUBLIC_LIVE_BASE_URL=$NEXT_PUBLIC_LIVE_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_LIVE_BASE_PATH="/live"
|
|
ENV NEXT_PUBLIC_LIVE_BASE_PATH=$NEXT_PUBLIC_LIVE_BASE_PATH
|
|
|
|
ARG NEXT_PUBLIC_SPACE_BASE_URL=""
|
|
ENV NEXT_PUBLIC_SPACE_BASE_URL=$NEXT_PUBLIC_SPACE_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_SPACE_BASE_PATH="/spaces"
|
|
ENV NEXT_PUBLIC_SPACE_BASE_PATH=$NEXT_PUBLIC_SPACE_BASE_PATH
|
|
|
|
ARG NEXT_PUBLIC_WEB_BASE_URL=""
|
|
ENV NEXT_PUBLIC_WEB_BASE_URL=$NEXT_PUBLIC_WEB_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_SILO_BASE_URL=""
|
|
ENV NEXT_PUBLIC_SILO_BASE_URL=$NEXT_PUBLIC_SILO_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_SILO_BASE_PATH="/silo"
|
|
ENV NEXT_PUBLIC_SILO_BASE_PATH=$NEXT_PUBLIC_SILO_BASE_PATH
|
|
|
|
ENV NEXT_TELEMETRY_DISABLED 1
|
|
ENV TURBO_TELEMETRY_DISABLED 1
|
|
|
|
RUN yarn turbo run build --filter=web
|
|
|
|
# *****************************************************************************
|
|
# STAGE 3: Copy the project and start it
|
|
# *****************************************************************************
|
|
FROM base AS runner
|
|
WORKDIR /app
|
|
|
|
COPY --from=installer /app/web/next.config.js .
|
|
COPY --from=installer /app/web/package.json .
|
|
|
|
# Automatically leverage output traces to reduce image size
|
|
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
|
COPY --from=installer /app/web/.next/standalone ./
|
|
COPY --from=installer /app/web/.next ./web/.next
|
|
COPY --from=installer /app/web/public ./web/public
|
|
|
|
ARG NEXT_PUBLIC_API_BASE_URL=""
|
|
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_ADMIN_BASE_URL=""
|
|
ENV NEXT_PUBLIC_ADMIN_BASE_URL=$NEXT_PUBLIC_ADMIN_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_ADMIN_BASE_PATH="/god-mode"
|
|
ENV NEXT_PUBLIC_ADMIN_BASE_PATH=$NEXT_PUBLIC_ADMIN_BASE_PATH
|
|
|
|
ARG NEXT_PUBLIC_LIVE_BASE_URL=""
|
|
ENV NEXT_PUBLIC_LIVE_BASE_URL=$NEXT_PUBLIC_LIVE_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_LIVE_BASE_PATH="/live"
|
|
ENV NEXT_PUBLIC_LIVE_BASE_PATH=$NEXT_PUBLIC_LIVE_BASE_PATH
|
|
|
|
ARG NEXT_PUBLIC_SPACE_BASE_URL=""
|
|
ENV NEXT_PUBLIC_SPACE_BASE_URL=$NEXT_PUBLIC_SPACE_BASE_URL
|
|
|
|
ARG NEXT_PUBLIC_SPACE_BASE_PATH="/spaces"
|
|
ENV NEXT_PUBLIC_SPACE_BASE_PATH=$NEXT_PUBLIC_SPACE_BASE_PATH
|
|
|
|
ARG NEXT_PUBLIC_WEB_BASE_URL=""
|
|
ENV NEXT_PUBLIC_WEB_BASE_URL=$NEXT_PUBLIC_WEB_BASE_URL
|
|
|
|
ENV NEXT_TELEMETRY_DISABLED 1
|
|
ENV TURBO_TELEMETRY_DISABLED 1
|
|
|
|
EXPOSE 3000
|