File Dockerfile of Package trento-web-image
# SPDX-License-Identifier: Apache-2.0 #!BuildTag: trento/trento-web:latest #!BuildTag: trento/trento-web:3.0.0-git.44.1769415893.07486a29f #!BuildTag: trento/trento-web:3.0.0-git.44.1769415893.07486a29f-build%RELEASE% #!UseOBSRepositories #!ExclusiveArch: x86_64 FROM registry.suse.com/bci/nodejs:22 AS assets-build ADD web.tar.gz /build/ WORKDIR /build/web/assets RUN npm run tailwind:build RUN npm run build FROM registry.suse.com/bci/bci-base:15.6 AS release RUN zypper -n in make gcc git-core elixir==1.15 elixir-hex erlang==26 erlang-rebar3 COPY --from=assets-build /build /build WORKDIR /build/web/ ENV LANG=en_US.UTF-8 ENV LANGUAGE=en_US:en ENV LC_ALL=en_US.UTF-8 ENV MIX_ENV=prod ENV MIX_HOME=/usr/bin ENV MIX_REBAR3=/usr/bin/rebar3 ENV MIX_PATH=/usr/lib/elixir/lib/hex/ebin ENV VERSION=3.0.0-git.44.1769415893.07486a29f RUN mix phx.digest RUN mix release FROM registry.suse.com/bci/bci-base:15.6 # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=com.suse.trento LABEL org.opencontainers.image.source="https://github.com/trento-project/web" ENV LANG=en_US.UTF-8 ENV LANGUAGE=en_US:en ENV LC_ALL=en_US.UTF-8 # Erlang runtime dependencies RUN zypper -n in libsystemd0 libopenssl1_1 WORKDIR /app COPY --from=release /build/web/_build/prod/rel/trento . EXPOSE 4000/tcp ENTRYPOINT ["/app/bin/trento"]