-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1813036
commit de9fd9e
Showing
3 changed files
with
62 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# syntax=docker/dockerfile:1 | ||
ARG VOLTO_VERSION | ||
FROM plone/frontend-builder:${VOLTO_VERSION} as builder | ||
|
||
ARG ADDON_NAME | ||
ARG ADDON_PATH | ||
|
||
COPY --chown=node:node ./ /app/src/addons/${ADDON_PATH}/ | ||
|
||
RUN <<EOT | ||
/setupAddon | ||
yarn install --network-timeout 1000000 | ||
yarn build | ||
rm -rf cache omelette .yarn/cache | ||
EOT | ||
|
||
FROM plone/frontend-prod-config:${VOLTO_VERSION} | ||
|
||
LABEL maintainer="Plone Community <[email protected]>" \ | ||
org.label-schema.name="volto-social-blocks" \ | ||
org.label-schema.description="Plone frontend image" \ | ||
org.label-schema.vendor="Plone Foundation" | ||
|
||
COPY --from=builder /app/ /app/ |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: "3" | ||
|
||
services: | ||
|
||
addon-dev: | ||
build: | ||
context: ../ | ||
dockerfile: ./dockerfiles/Dockerfile.dev | ||
args: | ||
ADDON_NAME: "${ADDON_NAME}" | ||
ADDON_PATH: "${ADDON_PATH}" | ||
VOLTO_VERSION: ${VOLTO_VERSION:-16} | ||
volumes: | ||
- ${CURRENT_DIR}:/app/src/addons/${ADDON_PATH}/ | ||
environment: | ||
RAZZLE_INTERNAL_API_PATH: http://backend:8080/Plone | ||
RAZZLE_API_PATH: http://localhost:8080/Plone | ||
ports: | ||
- 3000:3000 | ||
- 3001:3001 | ||
depends_on: | ||
- backend | ||
tty: true | ||
profiles: | ||
- dev | ||
|
||
backend: | ||
image: plone/plone-backend:${PLONE_VERSION:-6} | ||
environment: | ||
SITE: Plone | ||
CORS_ALLOW_ORIGIN: '*' | ||
ports: | ||
- 8080:8080 | ||
profiles: | ||
- dev |
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