Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
# A container for the core semantic-search capability.
#
######################################################
FROM python:3.12-alpine3.21
FROM python:alpine3.22


# Install required packages
RUN apk update && \
apk add g++ make cargo rust

RUN apk upgrade -Ua
RUN apk add "libxml2=2.13.4-r6"

RUN pip install --upgrade pip
# Create a non-root user.
Expand Down
5 changes: 3 additions & 2 deletions src/dug/core/parsers/dbgap_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ def __call__(self, input_file: InputFile) -> List[Indexable]:

# Create DBGaP links as study/variable actions
elem.collection_action = utils.get_dbgap_study_link(study_id=elem.collection_id)
elem.action = utils.get_dbgap_var_link(study_id=elem.collection_id,
variable_id=elem.id.split(".")[0].split("phv")[1])
if "phv" in elem.id:
elem.action = utils.get_dbgap_var_link(study_id=elem.collection_id,
variable_id=elem.id.split(".")[0].split("phv")[1])
# Add to set of variables
logger.debug(elem)
elements.append(elem)
Expand Down
1 change: 1 addition & 0 deletions src/dug/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
APP = FastAPI(
title="Dug Search API",
root_path=os.environ.get("ROOT_PATH", ""),
terms_of_service=os.environ.get("DUG_TOS_URL", None),
)

APP.add_middleware(
Expand Down
Loading