Skip to content

Commit

Permalink
fix: security fixes per dependabot reports and pin cdk to work around a…
Browse files Browse the repository at this point in the history
…ws/aws-cdk#30241 in docker deploy
  • Loading branch information
danellecline committed May 17, 2024
1 parent d2c062d commit 9b282f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.aws
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG GIT_VERSION=latest
ARG IMAGE_URI=mbari/fastapi-yolov5-fargate-elb:${GIT_VERSION}

# Install the required node modules, and force the latest version of aws-cdk
RUN npm install -g aws-cdk
RUN npm install -g aws-cdk@2.141.0

RUN apt-get update && \
apt-get install -y git && \
Expand All @@ -31,7 +31,7 @@ RUN apt-get update && \
# Create a virtual environment and run install in that
RUN python3 -m venv /venv
ENV PATH="/venv/bin:$PATH"
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip>=23.3.0
RUN pip3 install aws-cdk-lib pyyaml

WORKDIR /tmp
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
- conda-forge
dependencies:
- python>=3.10
- pip>=23.3
- pip:
- aws-cdk.cdk
- aws-cdk-lib>2.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apt update -y && apt install -y software-properties-common && \
&& apt-get install -y libncurses6 \
&& apt-get install -y curl \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 \
&& python3.10 -m pip install --upgrade pip==23.2.1 \
&& python3.10 -m pip install --upgrade pip==23.3.0 \
&& apt-get clean

ENV WORKERS_PER_CORE=4
Expand Down
4 changes: 3 additions & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ uvicorn
boto3
python-multipart
httpx
pytest
pytest
gunicorn>=22.0.0
flask>=2.2.5

0 comments on commit 9b282f6

Please sign in to comment.