You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LABEL org.opencontainers.image.description="Thand Agent - Open-source agent for AI-ready privilege access management (PAM) and just-in-time access (JIT) to cloud infrastructure, SaaS applications and local systems."
LABEL org.opencontainers.image.licenses=BSL-1.1
# Set up build arguments
ARG TARGETARCH
ARG VERSION=dev
ARG COMMIT=unknown
# Install ca-certificates for HTTPS calls
RUN apk update && apk --no-cache add ca-certificates gcompat
# Create a non-root user
RUN addgroup -S thand && adduser -S thand -G thand
# Set working directory
WORKDIR /app
# Copy pre-built binary based on target architecture
COPY dist/agent-linux-${TARGETARCH} ./thand
# Make binary executable
RUN chmod +x ./thand
# Copy configuration example file if it exists
COPY config.example.yaml ./
# Change ownership to non-root user
RUN chown -R thand:thand /app
# Switch to non-root user
USER thand
# Expose the default port (adjust if your server uses a different port)