File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ WORKDIR /usr/src/myapp
1111ARG JMC
1212ARG JSU
1313
14- RUN apk add git py3-pip py3-re2 icu-data-full
14+ RUN apk add git py3-pip py3-re2 py3-dotenv icu-data-full
1515
1616# force install, otherwise it would require a virtual environment
1717RUN pip install --break-system-packages jsonschema-specifications
Original file line number Diff line number Diff line change 99"""
1010
1111from pathlib import Path
12+ import dotenv
1213import hashlib
1314import json
1415import os
@@ -71,12 +72,7 @@ class Runner:
7172 def __init__ (self , language : str = "python" , options : list [str ] = []):
7273
7374 # setup environment
74- if ENV .exists ():
75- with Path .open (ENV ) as env :
76- for line in env :
77- if line .startswith ("export " ) and "=" in line :
78- var , val = line [7 :].rstrip ().split ("=" , 1 )
79- os .environ [var ] = val
75+ dotenv .load_dotenv (ENV )
8076
8177 # setup language
8278 self .language : str = language .lower ()
You can’t perform that action at this time.
0 commit comments