Skip to content

Commit

Permalink
Merge pull request #301 from kloudlite/release-v1.0.5
Browse files Browse the repository at this point in the history
Merging release-v1.0.5 to main
  • Loading branch information
nxtcoder19 authored Sep 27, 2024
2 parents 72c047e + d57aa50 commit 866f8c6
Show file tree
Hide file tree
Showing 1,509 changed files with 150,201 additions and 37,664 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ src/generated/plugin/node_modules
src/design-system/node_modules
src/apps/devdoc/node_modules
src/apps/devdoc/.next
src/apps/webinar/.env

2 changes: 0 additions & 2 deletions .env

This file was deleted.

1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ extends:
rules:
no-case-declarations: 0
no-restricted-syntax: 0
react/no-unescaped-entities: 0
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Logs
*.log
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Expand Down Expand Up @@ -34,3 +35,5 @@ out
storybook-dist

tsconfig-compile.tsbuildinfo

.secrets
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
FROM node:20.8.1-alpine as remix
WORKDIR /app
COPY ./package-production.json ./package.json
RUN npm i
RUN npm i --frozen-lockfile

FROM node:20.8.1-alpine as install
RUN npm i -g pnpm
WORKDIR /app
COPY ./package.json ./package.json
COPY ./pnpm-lock.yaml ./pnpm-lock.yaml

# typecheck
ARG APP
ENV APP=${APP}
COPY ./src/generated/package.json ./src/generated/package.json
COPY ./src/generated/plugin/package.json ./src/generated/plugin/package.json
# COPY ./src/generated/package.json ./src/generated/package.json
# COPY ./src/generated/plugin/package.json ./src/generated/plugin/package.json
COPY ./src/generated/package.json ./src/generated/pnpm-lock.yaml ./src/generated/
COPY ./src/generated/plugin/package.json ./src/generated/plugin/pnpm-lock.yaml ./src/generated/plugin/

RUN pnpm i -p
RUN pnpm i -p --frozen-lockfile

FROM node:20.8.1-alpine as build
RUN npm i -g pnpm
Expand Down
40 changes: 40 additions & 0 deletions Dockerfile.webinar
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FROM node:20.8.1-alpine AS base
RUN apk add g++ make py3-pip
RUN npm i -g pnpm
WORKDIR /app
COPY ./package.json ./package.json
COPY ./pnpm-lock.yaml ./pnpm-lock.yaml

RUN mkdir -p ./src/generated/plugin
COPY ./src/generated/package.json ./src/generated/pnpm-lock.yaml ./src/generated/
COPY ./src/generated/plugin/package.json ./src/generated/plugin/pnpm-lock.yaml ./src/generated/plugin/

RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=pnpm-lock.yaml,target=pnpm-lock.yaml \
--mount=type=cache,target=/root/.local/share/pnpm/store \
pnpm i --frozen-lockfile

# lib
COPY ./lib ./lib

# design system
COPY ./src/design-system/ ./src/design-system/
WORKDIR /app/src/design-system
RUN pnpm i --frozen-lockfile
RUN pnpm local:release

# webinar
WORKDIR /app
COPY ./src/apps/webinar ./src/apps/webinar
WORKDIR /app/src/apps/webinar
RUN pnpm i --frozen-lockfile
RUN pnpm build

FROM node:20.8.1-alpine
WORKDIR /app
COPY --from=base /app/src/apps/webinar/.next ./.next
COPY --from=base /app/src/apps/webinar/public ./public
COPY --from=base /app/src/apps/webinar/package.json ./package.json
COPY --from=base /app/src/apps/webinar/node_modules ./node_modules

ENTRYPOINT npm run start
Loading

0 comments on commit 866f8c6

Please sign in to comment.