diff --git a/Dockerfile.moth-devel b/Dockerfile.moth-devel index bf5cf4f..4d5f214 100644 --- a/Dockerfile.moth-devel +++ b/Dockerfile.moth-devel @@ -1,5 +1,8 @@ FROM alpine +ARG http_proxy +ENV http_proxy=${http_proxy} + RUN apk --no-cache add python3 py3-pillow COPY tools/devel-server.py /moth/ diff --git a/tools/devel-server.py b/tools/devel-server.py index aa69535..fdda12f 100755 --- a/tools/devel-server.py +++ b/tools/devel-server.py @@ -31,12 +31,13 @@ sys.dont_write_bytecode = True # XXX: This will eventually cause a problem. Do something more clever here. seed = 1 -def page(title, body): +def page(title, body, scripts=[]): return """