1
0
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:
Florent Daigniere 2023-10-07 10:03:23 +02:00
parent dd58d51156
commit 9e1bf76a0c
2 changed files with 7 additions and 3 deletions

View File

@ -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 /

View File

@ -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())