Skip to content

Commit fca1a06

Browse files
change base image and update dependencies (#3232)
1 parent 614126c commit fca1a06

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM opensuse/leap:15.6 AS elixir-build
1+
FROM registry.suse.com/bci/bci-base:15.6 AS elixir-build
22
ENV LANG=en_US.UTF-8
33
ENV LANGUAGE=en_US:en
44
ENV LC_ALL=en_US.UTF-8
@@ -32,14 +32,14 @@ ENV MIX_PATH=/usr/lib/elixir/lib/hex/ebin
3232
RUN mix phx.digest
3333
RUN mix release
3434

35-
FROM opensuse/leap:15.6
35+
FROM registry.suse.com/bci/bci-base:15.6
3636
LABEL org.opencontainers.image.source="https://github.com/trento-project/web"
3737
ARG MIX_ENV=prod
38-
ENV LANG en_US.UTF-8
39-
ENV LANGUAGE en_US:en
40-
ENV LC_ALL en_US.UTF-8
41-
# tar is required by kubectl cp
42-
RUN zypper -n in tar
38+
ENV LANG=en_US.UTF-8
39+
ENV LANGUAGE=en_US:en
40+
ENV LC_ALL=en_US.UTF-8
41+
# Erlang runtime dependencies
42+
RUN zypper -n in libsystemd0 libopenssl1_1
4343
WORKDIR /app
4444
COPY --from=release /build/_build/$MIX_ENV/rel/trento .
4545
EXPOSE 4000/tcp

packaging/suse/container/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ LABEL org.opencontainers.image.source="https://github.com/trento-project/web"
3333
ENV LANG=en_US.UTF-8
3434
ENV LANGUAGE=en_US:en
3535
ENV LC_ALL=en_US.UTF-8
36-
# tar is required by kubectl cp
37-
RUN zypper -n in tar
36+
# Erlang runtime dependencies
37+
RUN zypper -n in libsystemd0 libopenssl1_1
3838
WORKDIR /app
3939
COPY --from=release /build/web/_build/prod/rel/trento .
4040
EXPOSE 4000/tcp

0 commit comments

Comments
 (0)