-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile.dev
39 lines (32 loc) · 1.05 KB
/
Dockerfile.dev
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
# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.11
ARG PLONE_VERSION
FROM plone/server-builder:${PLONE_VERSION}
LABEL maintainer="Plone Community <[email protected]>" \
org.label-schema.name="server-dev" \
org.label-schema.description="Plone $PLONE_VERSION production configuration image using Python $PYTHON_VERSION" \
org.label-schema.vendor="Plone Foundation"
# Install plone.reload, create plone user
RUN <<EOT
set -e
/app/bin/pip install plone.reload -c /app/constraints.txt
useradd --system -m -d /app -U -u 500 plone
chown -R 500:500 /data /app
ln -s /data /app/var
EOT
# Turns off buffering
ENV PYTHONUNBUFFERED 1
# Keeps Python from generating .pyc files
ENV PYTHONDONTWRITEBYTECODE 1
# Enable Application server in debug mode
ENV DEBUG_MODE on
# Disable compilation of po files into mo files
ENV zope_i18n_compile_mo_files=
# Set chameleon cache directory
ENV CHAMELEON_CACHE /app/var/cache
# Expose Zope Port
EXPOSE 8080
# Use /app as the workdir
WORKDIR /app
ENTRYPOINT [ "/app/docker-entrypoint.sh" ]
CMD ["start"]