forked from plone/plone-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.acceptance
45 lines (34 loc) · 1.42 KB
/
Dockerfile.acceptance
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
39
40
41
42
43
44
45
# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.11
ARG PLONE_VERSION
FROM plone/server-builder:${PLONE_VERSION} as builder
# https://github.com/pypa/pip/issues/12079
ENV _PIP_USE_IMPORTLIB_METADATA=0
# Install robotframework support
RUN /app/bin/pip install plone.app.robotframework>=2.0.0
FROM plone/server-prod-config:${PLONE_VERSION}
LABEL maintainer="Plone Community <[email protected]>" \
org.label-schema.name="server-acceptance" \
org.label-schema.description="Plone $PLONE_VERSION backend acceptance image using Python $PYTHON_VERSION" \
org.label-schema.vendor="Plone Foundation"
# Copy /app from builder
COPY --from=builder --chown=500:500 /app /app
# Set chameleon cache directory
ENV CHAMELEON_CACHE /app/var/cache
# Zope listens to all ip addresses
ENV ZSERVER_HOST=0.0.0.0
# Zope port to be 55001
ENV ZSERVER_PORT=55001
# This fixes the healthcheck defined in server-prod-config
ENV LISTEN_PORT=${ZSERVER_PORT}
# Profiles to be added to the created site
ENV APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.volto:default-homepage
# Packages to be used in configuration
ENV CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors
RUN ln -s /data /app/var
# Also expose port 55001
EXPOSE 55001
# Entrypoint is robot-server
ENTRYPOINT [ "/app/bin/robot-server" ]
# Run VOLTO_ROBOT_TESTING by default
CMD ["plone.app.robotframework.testing.VOLTO_ROBOT_TESTING"]