-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.builder
37 lines (32 loc) · 950 Bytes
/
Dockerfile.builder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# syntax=docker/dockerfile:1
FROM node:20-slim
ARG VOLTO_VERSION
LABEL maintainer="Plone Community <[email protected]>" \
org.label-schema.name="frontend-base" \
org.label-schema.description="Plone frontend builder image" \
org.label-schema.vendor="Plone Foundation"
RUN <<EOT
set -e
apt update
apt install -y --no-install-recommends python3 build-essential git ca-certificates
npm install --no-audit --no-fund -g yo @plone/generator-volto@alpha
mkdir /app
chown -R node:node /app
rm -rf /var/lib/apt/lists/*
EOT
WORKDIR /app
RUN corepack enable
USER node
RUN <<EOT
set -e
yo @plone/volto \
app \
--description "Plone frontend using Volto" \
--skip-addons \
--skip-install \
--skip-workspaces \
--volto=${VOLTO_VERSION} \
--no-interactive
yarn install --network-timeout 1000000
EOT
COPY --chown=node:node scripts/helper.py /setupAddon