Fix python3 compatibility
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
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
|
||||
RUN apk add --no-cache py-requests-toolbelt py-pip
|
||||
RUN pip install "idna<2.7"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
import jinja2
|
||||
import os
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
import time
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
Reference in New Issue
Block a user