pis-entry #1

Merged
fred.boniface merged 23 commits from pis-entry into dev 2023-05-06 21:51:54 +01:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 6c0b016a9a - Show all commits

View File

@ -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" ]

View File

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