-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (31 loc) · 828 Bytes
/
Dockerfile
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
FROM ubuntu:latest
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install \
python3 \
python3-pip \
python3-virtualenv \
python3-venv \
haproxy \
git \
postgresql-14 \
tree -y
RUN pip3 install zope \
psycopg2-binary \
Products.PythonScripts \
Products.ZSQLMethods \
Products.SiteErrorLog \
Products.StandardCacheManagers \
Products.ExternalMethod \
Products.MailHost \
zope.mkzeoinstance \
Products.Sessions \
git+https://github.com/perfact/ZPsycopgDA \
git+https://github.com/perfact/zodbsync \
Paste \
requests
COPY fs/ /
RUN printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d
WORKDIR /root
RUN mkwsgiinstance -u dockerzope:12345 -d wsgi
RUN mkzeoinstance zeo
ENTRYPOINT [ "StartZope" ]