-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.nightly
38 lines (30 loc) · 981 Bytes
/
Dockerfile.nightly
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
38
# syntax=docker/dockerfile:1
FROM node:18-slim as base
FROM base as builder
RUN <<EOT
set -e
apt-get update
buildDeps="curl python3 build-essential unzip"
apt-get install -y --no-install-recommends $buildDeps git
rm -rf /var/lib/apt/lists/*
mkdir build && chown -R node:node build
EOT
USER node
WORKDIR /build
# Generate new volto app
RUN <<EOT
set -e
curl -k -L -o workspace.zip https://github.com/plone/volto/archive/refs/heads/main.zip
unzip workspace.zip
mv volto-main plone-frontend
cd plone-frontend
yarn install --network-timeout 1000000
yarn build
rm -rf cache omelette .yarn/cache
EOT
FROM plone/frontend-prod-config:latest
LABEL maintainer="Plone Community <dev@plone.org>" \
org.label-schema.name="plone-frontend" \
org.label-schema.description="Plone frontend nightly image" \
org.label-schema.vendor="Plone Foundation"
COPY --from=builder --chown=node:node /build/plone-frontend/ /app/