26 lines
837 B
Docker
26 lines
837 B
Docker
FROM registry.suse.com/bci/bci-base:15.7
|
|
|
|
RUN zypper ar --repo https://download.opensuse.org/repositories/devel:/Factory:/git-workflow/15.7/devel:Factory:git-workflow.repo \
|
|
&& zypper -n --gpg-auto-import-keys refresh
|
|
|
|
RUN zypper -n install \
|
|
git \
|
|
sqlite3 \
|
|
curl \
|
|
gawk \
|
|
openssh \
|
|
jq \
|
|
devel_Factory_git-workflow:gitea \
|
|
&& rm -rf /var/cache/zypp/*
|
|
|
|
# Copy the minimal set of required files from the local 'container-files' directory
|
|
COPY container-files/ /
|
|
|
|
RUN chmod -R 777 /etc/gitea/conf
|
|
|
|
# Make the setup and entrypoint scripts executable
|
|
RUN chmod +x /opt/setup/setup-gitea.sh && chmod +x /opt/setup/entrypoint.sh && chmod +x /opt/setup/setup-webhook.sh && chmod +x /opt/setup/setup-dummy-data.sh
|
|
|
|
# Use the new entrypoint script to start the container
|
|
ENTRYPOINT ["/opt/setup/entrypoint.sh"]
|