Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: fix multiple vulnerabilities in api module #103

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
FROM python:3.9

RUN apt-get update && apt-get install -y \
libtasn1-6=4.16.0-2+deb11u1 \
libksba8=1.5.0-3+deb11u2 \
libssl-dev=1.1.1n-0+deb11u5 \
openssl=1.1.1n-0+deb11u5 \
libde265-0=1.0.11-0+deb11u1 \
git=1:2.30.2-1+deb11u2 \
git-man=1:2.30.2-1+deb11u2 \
libaprutil1=1.6.1-5+deb11u1 \
libgnutls30=3.7.1-5+deb11u3 \
libapr1=1.7.0-6+deb11u2

RUN mkdir /home/api
WORKDIR /home/api

COPY . .
RUN apt-get update

RUN pip install pip==23.3

COPY requirements.txt .
RUN pip install -r requirements.txt

EXPOSE 5000
COPY . .
8 changes: 4 additions & 4 deletions api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fastapi==0.95.0
fastapi==0.111.0
httpx==0.23.3
pydantic==1.10.6
pydantic==2.4.0
pytest==7.2.2
requests==2.31.0
requests==2.32.0
setuptools==67.6.0
uvicorn==0.21.1
uvicorn==0.30.0
52 changes: 40 additions & 12 deletions web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
FROM node:18.14

WORKDIR /app

RUN apt-get update && apt-get install -y \
libde265-0=1.0.11-0+deb11u1 \
bsdutils=1:2.36.1-8+deb11u2 \
curl=7.74.0-1.3+deb11u11 \
imagemagick-6-common=8:6.9.11.60+dfsg-1.3+deb11u3 \
imagemagick-6.q16=8:6.9.11.60+dfsg-1.3+deb11u3 \
imagemagick=8:6.9.11.60+dfsg-1.3+deb11u3 \
libaom0=1.0.0.errata1-3+deb11u1 \
libapr1=1.7.0-6+deb11u2 \
libblkid-dev=2.36.1-8+deb11u2 \
libblkid1=2.36.1-8+deb11u2 \
libc-bin=2.31-13+deb11u10 \
libc-dev-bin=2.31-13+deb11u10 \
libc6-dev=2.31-13+deb11u10 \
libc6=2.31-13+deb11u10 \
libcurl3-gnutls=7.74.0-1.3+deb11u11 \
libde265-0=1.0.11-0+deb11u3 \
libglib2.0-0=2.66.8-1+deb11u1 \
libglib2.0-bin=2.66.8-1+deb11u1 \
libglib2.0-data=2.66.8-1+deb11u1 \
libglib2.0-dev-bin=2.66.8-1+deb11u1 \
libglib2.0-dev=2.66.8-1+deb11u1 \
libmount-dev=2.36.1-8+deb11u2 \
libmount1=2.36.1-8+deb11u2 \
libnghttp2-14=1.43.0-1+deb11u1 \
libpq5=13.14-0+deb11u1 \
libsmartcols1=2.36.1-8+deb11u2 \
libssl-dev=1.1.1n-0+deb11u5 \
linux-libc-dev=5.10.179-1 \
libncurses-dev=6.2+20201114-2+deb11u1 \
libpq-dev=13.11-0+deb11u1 \
libtinfo6=6.2+20201114-2+deb11u1 \
libwebp-dev=0.6.1-2.1+deb11u1 \
ncurses-bin=6.2+20201114-2+deb11u1 \
ncurses-base=6.2+20201114-2+deb11u1 \
openssl=1.1.1n-0+deb11u5

WORKDIR /app
libssl1.1=1.1.1n-0+deb11u5 \
libtinfo6=6.2+20201114-2+deb11u2 \
libx11-6=2:1.7.2-1+deb11u2 \
libx11-data=2:1.7.2-1+deb11u2 \
linux-libc-dev=5.10.218-1 \
mount=2.36.1-8+deb11u2 \
ncurses-base=6.2+20201114-2+deb11u2 \
ncurses-bin=6.2+20201114-2+deb11u2 \
openssh-client=1:8.4p1-5+deb11u3 \
openssl=1.1.1n-0+deb11u5 \
perl=5.32.1-4+deb11u3 \
util-linux=2.36.1-8+deb11u2 \
uuid-dev=2.36.1-8+deb11u2

COPY package*.json ./

Expand All @@ -22,4 +50,4 @@ RUN npm install
COPY . .
EXPOSE 4200

CMD npm start
CMD npm start
Loading
Loading