Skip to content

Commit

Permalink
ops: uvicorn is now reqd for deployment, sort deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kerberizer committed Sep 15, 2024
1 parent 587fe2c commit 532040d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 532040d

Please sign in to comment.