Skip to content
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
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Default Dockerfile — single-stage build, always works.
# For faster builds with pre-built deps image, use Dockerfile.fast.
FROM registry.access.redhat.com/ubi9/python-312:latest
WORKDIR /opt/app-root/src

COPY pyproject.toml .
COPY sre_agent/ sre_agent/
RUN pip install --no-cache-dir .
WORKDIR /app
COPY . .

USER 1001

EXPOSE 8080
CMD ["pulse-agent-api"]

HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:8080/ || exit 1
2 changes: 1 addition & 1 deletion Dockerfile.deps
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/python-312:latest
FROM registry.access.redhat.com/ubi9/python-312@sha256:ebd0347a0422ad0d24db801972b4c1efa6f3352e5c2553b034e6b70e91235854
WORKDIR /opt/app-root/src

ARG DEPS_HASH=unknown
Expand Down
Loading