Skip to content

Commit

Permalink
Fix image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Sep 19, 2024
1 parent 59402cf commit 7baa569
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
# syntax=docker/dockerfile:1
ARG VOLTO_VERSION
# TODO: Replace with
# FROM plone/frontend-builder:${VOLTO_VERSION}
# when the main image is ready
FROM ghcr.io/kitconcept/frontend-builder:${VOLTO_VERSION} AS builder
FROM plone//frontend-builder:${VOLTO_VERSION} AS builder

COPY --chown=node packages/volto-ploneconf /app/packages/volto-ploneconf
COPY --chown=node volto.config.js /app/
COPY --chown=node package.json /app/package.json.temp

RUN --mount=type=cache,id=pnpm,target=/app/.pnpm-store,uid=1000 <<EOT
set -e
python3 -c "import json; data = json.load(open('package.json.temp')); deps = data['dependencies']; data['dependencies'].update(deps); json.dump(data, open('package.json', 'w'), indent=2)"
rm package.json.temp
pnpm install && pnpm build:deps
pnpm build
pnpm install --prod
EOT

# TODO: Replace with
# FROM plone/frontend-prod-config:${VOLTO_VERSION}
# when the main image is ready
FROM ghcr.io/kitconcept/frontend-prod-config:${VOLTO_VERSION}
FROM plone/frontend-prod-config:${VOLTO_VERSION}

LABEL maintainer="Plone Foundation <[email protected]>" \
org.label-schema.name="ghcr.io/plone/ploneconf-2024-frontend" \
Expand Down

0 comments on commit 7baa569

Please sign in to comment.