-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3363 from ever-co/develop
Stage
- Loading branch information
Showing
44 changed files
with
2,267 additions
and
1,844 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,12 @@ ARG NEXT_PUBLIC_JITSU_BROWSER_URL | |
ARG NEXT_PUBLIC_JITSU_BROWSER_WRITE_KEY | ||
ARG NEXT_PUBLIC_GITHUB_APP_NAME=ever-github | ||
ARG NEXT_PUBLIC_CHATWOOT_API_KEY | ||
ARG NEXT_IGNORE_ESLINT_ERROR_ON_BUILD=true | ||
|
||
FROM node:${NODE_VERSION}-slim as base | ||
FROM node:${NODE_VERSION}-slim AS base | ||
|
||
# Output the environment variable value | ||
ARG NEXT_PUBLIC_GAUZY_API_SERVER_URL | ||
RUN echo "NEXT_PUBLIC_GAUZY_API_SERVER_URL=${NEXT_PUBLIC_GAUZY_API_SERVER_URL}" | ||
|
||
LABEL maintainer="[email protected]" | ||
|
@@ -42,7 +44,7 @@ RUN mkdir /temp && cd /temp && \ | |
RUN npm cache clean --force | ||
|
||
# Throw-away build stage to reduce size of final image | ||
FROM base as build | ||
FROM base AS build | ||
|
||
# We make env vars passed as build argument to be available in this build stage because we prebuild the NextJs app | ||
ARG NEXT_PUBLIC_GAUZY_API_SERVER_URL | ||
|
@@ -80,6 +82,7 @@ RUN cd apps/web && \ | |
COPY . . | ||
|
||
ENV NODE_ENV=production | ||
ENV NEXT_IGNORE_ESLINT_ERROR_ON_BUILD=true | ||
|
||
RUN echo $NEXT_PUBLIC_GAUZY_API_SERVER_URL | ||
|
||
|
@@ -96,8 +99,6 @@ RUN yarn cache clean | |
# Final stage for app image | ||
FROM base | ||
|
||
ENV NODE_ENV=production | ||
|
||
# Copy built application | ||
COPY --from=build /app/apps/web/.next/standalone ./ | ||
COPY --from=build /app/apps/web/.next/static ./apps/web/.next/static | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.