content: FROM ubuntu:22.04
  ARG BUILD_DATETIME
  ARG VCS_REF
  
  LABEL org.opencontainers.image.authors="dev@chainflip.io"
  LABEL org.opencontainers.image.vendor="Chainflip Labs GmbH"
  LABEL org.opencontainers.image.title="chainflip/chainflip-cli"
  LABEL org.opencontainers.image.source="https://github.com/chainflip-io/chainflip-backend/blob/${VCS_REF}/ci/docker/production/chainflip-cli.Dockerfile"
  LABEL org.opencontainers.image.revision="${VCS_REF}"
  LABEL org.opencontainers.image.created="${BUILD_DATETIME}"
  LABEL org.opencontainers.image.environment="development"
  LABEL org.opencontainers.image.documentation="https://github.com/chainflip-io/chainflip-backend"
  
  COPY --chown=1000:1000 chainflip-cli /usr/local/bin/chainflip-cli
  
  WORKDIR /etc/chainflip
  
  RUN chmod +x /usr/local/bin/chainflip-cli \
      && useradd -m -u 1000 -U -s /bin/sh -d /flip flip \
      && chown -R 1000:1000 /etc/chainflip
  
  RUN apt-get update \
      && apt-get install -y ca-certificates curl jq --no-install-recommends \
      && apt-get clean \
      && rm -rf /var/lib/apt/lists/*
  
  USER flip
  
  CMD ["/usr/local/bin/chainflip-cli"]
  