Skip to content

Commit

Permalink
Command-service Vulnerabilities fixes (#56)
Browse files Browse the repository at this point in the history
* Release 1.3.0 into Main (#53)

* issue#223: feat: Updated API endpoints with verbs

* issue#223: fix: Test case modification

* issue #84 : fix: API swagger doc update

* #99 fix: upgrade packages to fix vulnerabilities

---------

Co-authored-by: Jerald <[email protected]>
Co-authored-by: harishkumar gangula <[email protected]>
Co-authored-by: Praveen <[email protected]>

* command-service vulnerabilities fixes

---------

Co-authored-by: Manjunath Davanam <[email protected]>
Co-authored-by: Jerald <[email protected]>
Co-authored-by: harishkumar gangula <[email protected]>
Co-authored-by: Praveen <[email protected]>
  • Loading branch information
5 people authored Nov 15, 2023
1 parent b4a42e0 commit a492281
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions command-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM ubuntu:latest AS ubuntu
RUN apt-get update && apt-get install -y curl

RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/local/bin

FROM --platform=linux/amd64 python:3.10-alpine
COPY --from=ubuntu /usr/local/bin /usr/local/bin

RUN apk update && apk add curl jq && curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x kubectl && mv kubectl /usr/local/bin/

RUN apk add libcrypto3=3.1.4-r0
RUN apk upgrade
WORKDIR /app
COPY command-service/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY command-service/src ./src
WORKDIR /app/src
CMD [ "uvicorn", "routes:app", "--host", "0.0.0.0" ]
CMD [ "uvicorn", "routes:app", "--host", "0.0.0.0" ]
4 changes: 2 additions & 2 deletions command-service/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fastapi==0.103.0
uvicorn==0.20.0
dataclasses-json==0.5.7
urllib3==1.26.17
urllib3==2.0.7
pyyaml==6.0.1
backoff==2.2.1
backoff==2.2.1

0 comments on commit a492281

Please sign in to comment.