Skip to content

Commit

Permalink
Update Dockerfile.acceptance
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Aug 1, 2023
1 parent 948351a commit 78505b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ start-test-acceptance-server: ## Start acceptance server
.PHONY: start-test-acceptance-server-prod
start-test-acceptance-server-prod: ## Start acceptance server
${ACCEPTANCE} --profile prod up -d

.PHONY: test-acceptance
test-acceptance: ## Start Cypress
(cd acceptance && ./node_modules/.bin/cypress open)
Expand Down
2 changes: 0 additions & 2 deletions acceptance/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ services:
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-acceptance:55001/plone
RAZZLE_API_PATH: http://localhost:55001/plone
Expand Down
11 changes: 9 additions & 2 deletions dockerfiles/Dockerfile.acceptance
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# syntax=docker/dockerfile:1
ARG VOLTO_VERSION
FROM plone/frontend-dev:${VOLTO_VERSION}
FROM plone/frontend-dev:${VOLTO_VERSION} as builder

ARG ADDON_NAME
ARG ADDON_PATH

COPY --chown=node:node package.json /app/src/addons/${ADDON_PATH}/
COPY --chown=node:node . /app/src/addons/${ADDON_PATH}/

RUN <<EOT
set -e
/setupAddon
yarn install --network-timeout 1000000
yarn build
rm -rf cache omelette .yarn/cache
EOT

FROM plone/frontend-prod-config:${VOLTO_VERSION}

# Copy Volto project
COPY --from=builder /app/ /app/

0 comments on commit 78505b4

Please sign in to comment.