-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 966 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.12-slim
RUN python -m pip install --no-cache-dir --upgrade "pip>=25.3"
# Install curl for healthcheck
RUN apt-get update && \
apt-get install -y curl git && \
rm -rf /var/lib/apt/lists/*
# Security updates for CVE-2024-56406 (Perl), CVE-2025-7709 (SQLite)
# Upgrade vulnerable system packages to their fixed versions
RUN apt-get update && \
apt-get upgrade -y \
libperl5.40 \
perl \
perl-modules-5.40 \
perl-base \
libsqlite3-0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY /docker /scripts
COPY /functions /functions
# Ensure scripts are executable
RUN chmod +x /scripts/package-restore.sh /scripts/start.sh
# Run the package-restore script
RUN /scripts/package-restore.sh
EXPOSE 8080
HEALTHCHECK --interval=5s --timeout=10s --start-period=1s --retries=3 \
CMD [ "bash", "-c", "exec curl -f http://localhost:${HASURA_CONNECTOR_PORT:-8080}/health" ]
CMD [ "/scripts/start.sh" ]