Change PIS path
This commit is contained in:
parent
65febce05c
commit
6c0b016a9a
@ -2,4 +2,5 @@ FROM python:3.11-alpine
|
|||||||
COPY ./requirements.txt /app/requirements.txt
|
COPY ./requirements.txt /app/requirements.txt
|
||||||
RUN [ "pip", "install", "-r", "/app/requirements.txt" ]
|
RUN [ "pip", "install", "-r", "/app/requirements.txt" ]
|
||||||
COPY ./src /app/src
|
COPY ./src /app/src
|
||||||
|
COPY ./data /app/data
|
||||||
CMD [ "python", "/app/src/main.py" ]
|
CMD [ "python", "/app/src/main.py" ]
|
@ -1,7 +1,7 @@
|
|||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
def load(): # Programatically add a `toc` field to each entry.
|
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:
|
try:
|
||||||
pis = yaml.safe_load(data)
|
pis = yaml.safe_load(data)
|
||||||
print(pis)
|
print(pis)
|
||||||
|
Reference in New Issue
Block a user