23 lines
800 B
Docker
23 lines
800 B
Docker
# Use the same base image as the Gitea container
|
|
FROM registry.suse.com/bci/bci-base:15.7
|
|
|
|
# Add the custom CA to the trust store
|
|
COPY rabbitmq-config/certs/cert.pem /usr/share/pki/trust/anchors/gitea-rabbitmq-ca.crt
|
|
RUN update-ca-certificates
|
|
|
|
RUN zypper ar -f http://download.opensuse.org/repositories/devel:/Factory:/git-workflow/15.7/devel:Factory:git-workflow.repo
|
|
RUN zypper --gpg-auto-import-keys ref
|
|
|
|
|
|
|
|
# Install git and ssh
|
|
RUN zypper -n in git-core openssh-clients autogits-workflow-pr binutils
|
|
|
|
# Copy the pre-built binary into the container
|
|
# COPY workflow-pr/workflow-pr /usr/local/bin/workflow-pr
|
|
COPY workflow-pr/entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
RUN chmod +4755 /usr/local/bin/entrypoint.sh
|
|
|
|
# Set the entrypoint for the container
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|