-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 904 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 904 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 ubuntu:noble-20260113
# Install Python 3.12 (Ubuntu Noble default), venv, curl, and git
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 \
python3-venv \
curl \
git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create python symlink for compatibility
RUN ln -sf /usr/bin/python3 /usr/bin/python
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
# Create non-root user
RUN useradd -m python && \
chown -R python:python /scripts /functions
USER python
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" ]