-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 801 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (20 loc) · 801 Bytes
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
# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.13
ARG PLONE_VERSION
FROM plone/server-builder:${PLONE_VERSION} AS builder
ARG PLONE_VERSION
FROM plone/server-prod-config:${PLONE_VERSION}
ARG PYTHON_VERSION
ARG PLONE_VERSION
LABEL maintainer="Plone Community <dev@plone.org>" \
org.label-schema.name="plone-backend" \
org.label-schema.description="Plone $PLONE_VERSION backend image using Python $PYTHON_VERSION" \
org.label-schema.vendor="Plone Foundation"
# Use /app as the workdir
WORKDIR /app
# Copy /app from builder
COPY --from=builder --chown=500:500 /app /app
# Enable compilation of po files into mo files (This is added here for backward compatibility)
ENV zope_i18n_compile_mo_files=true
# Link /data (the exposed volume) into /app/var
RUN ln -s /data /app/var