mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
Maybe fix olefy
This commit is contained in:
parent
dd58d51156
commit
9e1bf76a0c
@ -6,9 +6,13 @@ FROM base
|
||||
ARG VERSION=local
|
||||
LABEL version=$VERSION
|
||||
|
||||
ARG OLEFY_SCRIPT https://raw.githubusercontent.com/HeinleinSupport/olefy/f8aac6cc55283886d153e89c8f27fae66b1c24e2/olefy.py
|
||||
ARG OLEFY_SHA256 1f5aa58b78ca7917350135b4425e5ed4d580c7051aabed1952c6afd12d0345a0
|
||||
|
||||
RUN set -euxo pipefail \
|
||||
; apk add --no-cache netcat-openbsd libmagic libffi \
|
||||
; curl -sLo olefy.py https://raw.githubusercontent.com/HeinleinSupport/olefy/f8aac6cc55283886d153e89c8f27fae66b1c24e2/olefy.py \
|
||||
; curl -sLo olefy.py $OLEFY_SCRIPT \
|
||||
; echo "$OLEFY_SHA256 olefy.py" |sha256sum --check \
|
||||
; chmod 755 olefy.py
|
||||
|
||||
COPY start.py /
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
from socrate import system
|
||||
|
||||
system.set_env()
|
||||
|
||||
os.execl("/app/olefy.py", "olefy")
|
||||
with open('/app/olefy.py') as olefy:
|
||||
exec(olefy.read())
|
||||
|
Loading…
x
Reference in New Issue
Block a user