File Dockerfile of Package opencode-build

# Specify the license of the container build description (see also the LICENSE file)
# SPDX-License-Identifier: MIT
# Define the names/tags of the container
#!BuildTag: opensuse/opencode-build:latest opensuse/opencode-build:1.2.27

FROM opensuse/tumbleweed

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.example
LABEL org.opencontainers.image.title="Example container"
LABEL org.opencontainers.image.description="opencode for openSUSE package building"
LABEL org.opencontainers.image.version="1.0"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opencontainers.image.created="%BUILDTIME%"
# endlabelprefix

# Fill the image with content and clean the cache(s)
RUN zypper --non-interactive in build git zypper curl go vim which perl-Clone perl-Encode-Locale perl-HTML-Tagset perl-IO-HTML perl-LWP-MediaTypes perl-MIME-Base32 perl-TimeDate perl-Try-Tiny perl-URI perl-HTTP-Date perl-WWW-RobotRules perl-Net-HTTP perl-HTTP-Message perl-File-Listing perl-HTTP-Negotiate perl-HTTP-Cookies perl-HTML-Parser perl-libwww-perl hostname perl-XML-Parser zstd awk wget rpm-build

COPY opencode-linux-x64.tar.gz .
RUN tar xfv opencode-linux-x64.tar.gz && mv opencode /usr/local/bin/

COPY dot.opencode /root/.config/opencode
COPY dot.opencode /dot.opencode

#ENV OPENCODE_CONFIG=/etc/opencode.json
WORKDIR /opencode
ENTRYPOINT /usr/local/bin/opencode

openSUSE Build Service is sponsored by