# Generated by decapod container profile
# Path: .decapod/generated/Dockerfile
# Managed seed: Decapod maintains the image/version header; agents may
# mutate project-specific packages and commands in workspace branches.
ARG DECAPOD_IMAGE=ghcr.io/decapodlabs/decapod:v0.63.4
FROM $DECAPOD_IMAGE
ARG DECAPOD_VERSION=0.63.4
ARG DECAPOD_USE_LOCAL_BINARY=0
LABEL org.opencontainers.image.base.name="$DECAPOD_IMAGE"
LABEL org.decapod.version="$DECAPOD_VERSION"
RUN if command -v apk >/dev/null 2>&1; then \
apk add --no-cache bash ca-certificates cargo coreutils curl git openssh-client rust sqlite-libs; \
elif command -v apt-get >/dev/null 2>&1; then \
apt-get update && \
apt-get install -y --no-install-recommends bash build-essential ca-certificates cargo coreutils curl git libsqlite3-0 openssh-client rustc && \
rm -rf /var/lib/apt/lists/*; \
else \
echo "No supported package manager found" >&2; exit 1; \
fi
RUN update-ca-certificates
COPY .decapod/generated/decapod /usr/local/bin/decapod.local
RUN chmod 0755 /usr/local/bin/decapod.local && \
if [ "$DECAPOD_USE_LOCAL_BINARY" = "1" ]; then \
cp /usr/local/bin/decapod.local /usr/local/bin/decapod; \
fi
RUN if [ "$DECAPOD_USE_LOCAL_BINARY" != "1" ]; then \
/usr/local/bin/decapod --help >/dev/null; \
fi
