Fix python3 compatibility

This commit is contained in:
2021-04-26 18:31:20 +02:00
parent a6491fd87f
commit eb8380fa5b
9 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python3
import jinja2 import jinja2
import os import os

View File

@@ -1,6 +1,6 @@
FROM alpine:3.13 FROM alpine:3.13
RUN apk add --no-cache nginx nginx-mod-mail python py-jinja2 certbot openssl RUN apk add --no-cache nginx nginx-mod-mail python3 py3-jinja2 certbot openssl
# added to fix #522 # added to fix #522
RUN apk add --no-cache py-requests-toolbelt py-pip RUN apk add --no-cache py-requests-toolbelt py-pip
RUN pip install "idna<2.7" RUN pip install "idna<2.7"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python3
import jinja2 import jinja2
import os import os

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python3
import os import os
import time import time

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python3
import os import os
import subprocess import subprocess

View File

@@ -1,6 +1,6 @@
FROM alpine:3.13 FROM alpine:3.13
RUN apk add --no-cache postfix postfix-sqlite postfix-pcre rsyslog python py-jinja2 RUN apk add --no-cache postfix postfix-sqlite postfix-pcre rsyslog python3 py3-jinja2
COPY conf /conf COPY conf /conf
COPY start.py /start.py COPY start.py /start.py

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python3
import jinja2 import jinja2
import os import os

View File

@@ -1,6 +1,6 @@
FROM alpine:3.13 FROM alpine:3.13
RUN apk add --no-cache python py-jinja2 rspamd rspamd-controller rspamd-proxy ca-certificates RUN apk add --no-cache python3 py3-jinja2 rspamd rspamd-controller rspamd-proxy ca-certificates
RUN mkdir /run/rspamd RUN mkdir /run/rspamd

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python3
import jinja2 import jinja2
import os import os