File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM registry.access.redhat.com/ubi8 /ubi-minimal AS build
1
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal AS build
2
2
RUN microdnf update -y --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 && \
3
3
microdnf install -y --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 zip unzip make git gcc && \
4
4
microdnf install -y --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 go-toolset ca-certificates && \
5
5
microdnf clean all && \
6
6
rm -rf /var/cache/yum
7
+ WORKDIR /app/
7
8
8
9
ENV GOPATH /tmp/go
9
10
ENV PATH $PATH:$GOPATH/bin
@@ -18,20 +19,19 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal
18
19
ARG USER_UID
19
20
ARG USER_NAME
20
21
21
- ENV USER_UID 1001
22
- ENV USER_NAME apic
22
+ ENV USER_UID ${USER_UID:- 1001}
23
+ ENV USER_NAME ${USER_NAME:- apic}
23
24
RUN mkdir -p ${HOME} && chown ${USER_UID}:0 ${HOME} && chmod ug+rwx ${HOME}
24
25
25
26
COPY --from=build /app/out/trawler /app/trawler
26
27
COPY base-config.yaml /app/config/config.yaml
27
28
28
29
USER root
29
30
RUN microdnf upgrade -y --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 \
30
- && microdnf clean all
31
+ && microdnf clean all
31
32
USER 1001:0
32
33
33
34
EXPOSE 63512
34
35
ENV CONFIG_PATH=/app/config/config.yaml
35
36
36
37
CMD ["/app/trawler" ]
37
-
You can’t perform that action at this time.
0 commit comments