|
|
|
|
@ -43,6 +43,8 @@ RUN sed --in-place \
|
|
|
|
|
$BACKEND_LOCATION/photovoter_backend/config.py && \
|
|
|
|
|
sed --in-place \
|
|
|
|
|
--expression "s#app = FastAPI()#app = FastAPI(servers=[{'url': 'http://$DOMAIN/api/v1'}])#" \
|
|
|
|
|
# Hotpatching relative path instead of absolute one
|
|
|
|
|
--expression 's#return {"picture_id": r\["imgid"\], "picture_uri": r\["resizedpath"\]}#return {"picture_id": r\["imgid"\], "picture_uri": r\["resizedpath"\].split("/")[-1]}#'\
|
|
|
|
|
$BACKEND_LOCATION/photovoter_backend/main.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|