Merge branch 'stage-release' of https://github.com/makeplane/plane

This commit is contained in:
Aaryan Khandelwal 2022-12-16 21:47:49 +05:30
commit 830af71474
152 changed files with 9837 additions and 17 deletions

54
apps/app/Dockerfile.web Normal file
View file

@ -0,0 +1,54 @@
FROM node:18-alpine AS builder
RUN apk add --no-cache libc6-compat
RUN apk update
# Set working directory
WORKDIR /app
RUN apk add curl
COPY ./apps ./apps
COPY ./package.json ./package.json
COPY ./.eslintrc.json ./.eslintrc.json
COPY ./yarn.lock ./yarn.lock
RUN yarn global add turbo
RUN turbo prune --scope=app --docker
# Add lockfile and package.json's of isolated subworkspace
FROM node:18-alpine AS installer
RUN apk add --no-cache libc6-compat
RUN apk update
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
# Build the project
COPY --from=builder /app/out/full/ .
COPY turbo.json turbo.json
RUN yarn turbo run build --filter=app...
FROM node:18-alpine AS runner
WORKDIR /app
# Don't run production as root
RUN addgroup --system --gid 1001 plane
RUN adduser --system --uid 1001 captain
USER captain
COPY --from=installer /app/apps/app/next.config.js .
COPY --from=installer /app/apps/app/package.json .
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=installer --chown=captain:plane /app/apps/app/.next/standalone ./
COPY --from=installer --chown=captain:plane /app/apps/app/.next/static ./apps/app/.next/static
EXPOSE 3000
CMD node apps/app/server.js

View file

@ -1,10 +1,18 @@
/** @type {import('next').NextConfig} */
const path = require("path");
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
images: {
domains: ["vinci-web.s3.amazonaws.com"],
},
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, "../../"),
transpilePackages: ["ui"],
},
};
module.exports = nextConfig;

View file

@ -14,11 +14,17 @@
"@lexical/list": "^0.6.4",
"@lexical/react": "^0.6.4",
"@lexical/utils": "^0.6.4",
"@lexical/rich-text": "^0.6.4",
"@lexical/code": "^0.6.4",
"@lexical/table": "^0.6.4",
"@lexical/link": "^0.6.4",
"@lexical/markdown": "^0.6.4",
"@lexical/html": "^0.6.4",
"@lexical/selection": "^0.6.4",
"axios": "^1.1.3",
"js-cookie": "^3.0.1",
"lexical": "^0.6.4",
"next": "12.2.2",
"pnpm": "^7.17.1",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-model": "^1.18.1",
"prosemirror-schema-basic": "^1.2.0",