Skip to content
Merged
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
8 changes: 1 addition & 7 deletions enforcer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# Use the official Python 3.12 slim image as the base image
FROM python:3.12-slim
FROM python:3.12-alpine
ENV LANG=C.UTF-8
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PATH="/app/venv/bin:$PATH"

# We're installing here libexpat1, to upgrade the package to include a fix to 3 high CVEs. CVE-2024-45491,CVE-2024-45490,CVE-2024-45492
RUN apt-get update \
&& apt-get install -y --no-install-recommends libexpat1 \
&& rm -rf /var/lib/apt/lists/*

# Set the working directory
WORKDIR /app/enforcer

Expand Down
2 changes: 1 addition & 1 deletion enforcer/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fastapi==0.109.2
fastapi==0.115.12
uvicorn==0.27.1
pydantic==2.6.1
supabase==2.5
Expand Down