Skip to content

Commit 998639f

Browse files
fix: ubi9
1 parent ff6c516 commit 998639f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Containerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
FROM registry.access.redhat.com/ubi8/ubi-minimal AS build
1+
FROM registry.access.redhat.com/ubi9/ubi-minimal AS build
22
RUN microdnf update -y --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 && \
33
microdnf install -y --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 zip unzip make git gcc && \
44
microdnf install -y --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 go-toolset ca-certificates && \
55
microdnf clean all && \
66
rm -rf /var/cache/yum
7+
WORKDIR /app/
78

89
ENV GOPATH /tmp/go
910
ENV PATH $PATH:$GOPATH/bin
@@ -18,20 +19,19 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal
1819
ARG USER_UID
1920
ARG USER_NAME
2021

21-
ENV USER_UID 1001
22-
ENV USER_NAME apic
22+
ENV USER_UID ${USER_UID:-1001}
23+
ENV USER_NAME ${USER_NAME:-apic}
2324
RUN mkdir -p ${HOME} && chown ${USER_UID}:0 ${HOME} && chmod ug+rwx ${HOME}
2425

2526
COPY --from=build /app/out/trawler /app/trawler
2627
COPY base-config.yaml /app/config/config.yaml
2728

2829
USER root
2930
RUN microdnf upgrade -y --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 \
30-
&& microdnf clean all
31+
&& microdnf clean all
3132
USER 1001:0
3233

3334
EXPOSE 63512
3435
ENV CONFIG_PATH=/app/config/config.yaml
3536

3637
CMD ["/app/trawler"]
37-

0 commit comments

Comments
 (0)