From a61f6e1fb07cbeb8c2ddd32925f057f2054b5756 Mon Sep 17 00:00:00 2001 From: fnguyen Date: Tue, 31 Dec 2024 11:09:32 -0500 Subject: [PATCH 1/2] Switch Query from Alpine to Debian --- Dockerfile | 33 ++++----------------------------- entrypoint.sh | 10 +++------- 2 files changed, 7 insertions(+), 36 deletions(-) diff --git a/Dockerfile b/Dockerfile index 365a26a..f589001 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,37 +1,14 @@ ARG venv_python -ARG alpine_version -FROM python:${venv_python}-alpine${alpine_version} +FROM python:${venv_python} LABEL Maintainer="CanDIG Project" LABEL "candigv2"="query_app" USER root -RUN addgroup -S candig && adduser -S candig -G candig - -RUN apk update - -RUN apk add --no-cache \ - autoconf \ - automake \ - make \ - gcc \ - perl \ - bash \ - build-base \ - musl-dev \ - zlib-dev \ - bzip2-dev \ - xz-dev \ - libcurl \ - linux-headers \ - curl \ - curl-dev \ - yaml-dev \ - pcre-dev \ - git \ - sqlite \ - libffi-dev +RUN groupadd -r candig && useradd -r -g candig candig + +RUN apt-get update COPY requirements.txt /app/query_server/requirements.txt @@ -45,6 +22,4 @@ RUN chown -R candig:candig /app/query_server USER candig -RUN touch initial_setup - ENTRYPOINT ["bash", "entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index ce11351..79a223c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,12 +1,8 @@ #!/usr/bin/env bash -if [[ -f "initial_setup" ]]; then - sed -i s@\@$CANDIG_HTSGET_URL@ config.ini - sed -i s@\@$CANDIG_KATSU_URL@ config.ini - sed -i s@\@$OPA_URL@ config.ini - - rm initial_setup -fi +sed -i s@\@$CANDIG_HTSGET_URL@ config.ini +sed -i s@\@$CANDIG_KATSU_URL@ config.ini +sed -i s@\@$OPA_URL@ config.ini cd query_server gunicorn -k uvicorn.workers.UvicornWorker server:app From 2d22650fb434cf224bf6bab5d1e7d2e9b1c66059 Mon Sep 17 00:00:00 2001 From: Daisie Huang Date: Tue, 31 Dec 2024 13:50:17 -0800 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f589001..75d1d8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ LABEL "candigv2"="query_app" USER root -RUN groupadd -r candig && useradd -r -g candig candig +RUN groupadd -r candig && useradd -rm candig -g candig RUN apt-get update