pis-entry #1
@ -2,4 +2,5 @@ FROM python:3.11-alpine
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
RUN [ "pip", "install", "-r", "/app/requirements.txt" ]
|
||||
COPY ./src /app/src
|
||||
COPY ./data /app/data
|
||||
CMD [ "python", "/app/src/main.py" ]
|
@ -1,7 +1,7 @@
|
||||
import yaml
|
||||
|
||||
def load(): # Programatically add a `toc` field to each entry.
|
||||
with open("../data/pis/gwr.yaml", "r") as data:
|
||||
with open("/app/data/pis/gwr.yaml", "r") as data:
|
||||
try:
|
||||
pis = yaml.safe_load(data)
|
||||
print(pis)
|
||||
|
Reference in New Issue
Block a user