diff --git a/Dockerfile b/Dockerfile index f85d86d..b8d412b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,9 +32,9 @@ COPY ./src/rcapi /app/rcapi RUN sed -i '/^upload_dir:/s|:.*|: "/var/uploads"|' /app/rcapi/config/config.yaml RUN mkdir -p /var/uploads/TEMPLATES - COPY ./tests/resources/templates/dose_response.json /var/uploads/TEMPLATES/3c22a1f0-a933-4855-848d-05fcc26ceb7a.json ENV RAMANCHADA_API_CONFIG="/app/rcapi/config/config.yaml" +EXPOSE 80 CMD ["uvicorn", "rcapi.main:app", "--host", "0.0.0.0", "--port", "80", "--workers", "4"] diff --git a/poetry.lock b/poetry.lock index b001cf0..89ab88d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1033,7 +1033,7 @@ numpy = ">=1.17.3,<2.0.0" packaging = "*" pyjwt = "*" pytz = "*" -requests-unixsocket = "*" +requests_unixsocket = "*" [package.extras] aws = ["s3fs"] @@ -4145,4 +4145,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = ">=3.10,<3.13" -content-hash = "1754385a8655ce43f5d19b915d641d14faee86ada022c09beb260db720fb13c9" +content-hash = "f565af1f10230400c4755b6ebf125e1226ebc1c1b472164507fe06cc05da1cd7" diff --git a/pyproject.toml b/pyproject.toml index 1456b66..c9cfe08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,17 +21,18 @@ include = [ [tool.poetry.dependencies] python = ">=3.10,<3.13" -fastapi = "^0.112.1" -python-multipart = "^0.0.6" -pynanomapper = { path = "extern/pynanomapper", develop = true } -ramanchada2 = { path = "extern/ramanchada2", develop = true } apscheduler = "^3.10.1" +fastapi = "^0.112.1" h5grove = "^2.0.0" +h5pyd = { git = "https://github.com/HDFGroup/h5pyd.git" } +numcompress = "^0.1.2" openpyxl = "^3.1.2" pydantic-settings = "^2.4.0" -numcompress = "^0.1.2" -h5pyd = { git = "https://github.com/HDFGroup/h5pyd.git" } +pynanomapper = { path = "extern/pynanomapper", develop = true } python-keycloak = "^4.3.0" +python-multipart = "^0.0.6" +ramanchada2 = { path = "extern/ramanchada2", develop = true } +uvicorn = "^0.27.1" [tool.poetry.urls] "Bug Tracker" = "https://github.com/h2020charisma/ramanchada-api/issues" @@ -40,9 +41,8 @@ python-keycloak = "^4.3.0" dev = "scripts.dev_server:main" [tool.poetry.group.dev.dependencies] -pytest = "^8.0.1" httpx = "^0.27.0" -uvicorn = "^0.27.1" +pytest = "^8.0.1" [tool.poetry.group.jupyter.dependencies] jupyter = "^1.0.0"