-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release' of https://github.com/AmazeeLabs/silverback-te…
…mplate into feat/SLB-314
- Loading branch information
Showing
92 changed files
with
4,096 additions
and
321 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 |
---|---|---|
|
@@ -15,7 +15,7 @@ RUN npm install -g [email protected] && pnpm config set store-dir /tmp/cache/pnpm | |
|
||
# Copy pnpm lockfile and install dependencies. | ||
COPY pnpm-lock.yaml .npmrc /app/ | ||
#COPY patches /app/patches | ||
# COPY patches /app/patches | ||
RUN --mount=type=cache,target=/tmp/cache pnpm fetch && \ | ||
# There is a bug in pnpm: `pnpm fetch` creates _some_ node_modules folders | ||
# with _some_ packages. This can lead to an incomplete package installation. | ||
|
@@ -47,6 +47,7 @@ RUN --mount=type=cache,target=/tmp/cache pnpm i && \ | |
# Deploy apps. | ||
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/cms" /tmp/.deploy/cms --prod | ||
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/website" /tmp/.deploy/website --prod | ||
RUN --mount=type=cache,target=/tmp/cache pnpm deploy --filter "@custom/preview" /tmp/.deploy/preview --prod | ||
|
||
# ==================================================================================================== | ||
# CLI IMAGE | ||
|
@@ -82,11 +83,22 @@ FROM uselagoon/nginx-drupal as nginx | |
|
||
COPY --from=cli /app /app | ||
RUN cd /app/web && cp ../node_modules/@custom/ui/build/gutenberg.css . | ||
RUN cd /app/web && cp ../node_modules/@custom/ui/build/iframe.css . | ||
COPY .lagoon/nginx-conf/redirects-map.conf /etc/nginx/redirects-map.conf | ||
|
||
WORKDIR /app | ||
ENV WEBROOT=web | ||
|
||
# ==================================================================================================== | ||
# PREVIEW IMAGE | ||
# ==================================================================================================== | ||
|
||
FROM uselagoon/node-18:23.12.0 as preview | ||
|
||
RUN npm install -g [email protected] | ||
COPY --from=builder /tmp/.deploy/preview /app | ||
CMD pnpm start | ||
|
||
# ==================================================================================================== | ||
# PUBLISHER IMAGE | ||
# ==================================================================================================== | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.