Skip to content

Commit

Permalink
GH-11: fix UBI8 docker file
Browse files Browse the repository at this point in the history
Signed-off-by:Bart Hanssens <bart.hanssens@bosa.fgov.be>
  • Loading branch information
barthanssens committed Jul 29, 2022
1 parent 148e423 commit 9161caa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prod/Dockerfile.ubi8
Expand Up @@ -31,7 +31,8 @@ LABEL org.opencontainers.image.authors="Bart Hanssens <bart.hanssens@bosa.fgov.b
USER root

RUN echo 'nonroot:x:1949000151:0:non-root user:/home/nonroot:/sbin/nologin' >> /etc/passwd && \
mkdir /home/nonroot && \
mkdir /home/nonroot /home/nonroot/lucene /home/nonroot/store /home/nonroot/logs && \
mkdir /home/nonroot/download-auth /home/nonroot/download-onto && \
chown nonroot:0 /home/nonroot

COPY --from=temp /usr/local/bin/dumb-init /usr/local/bin/dumb-init
Expand All @@ -49,7 +50,7 @@ COPY --from=temp /home/belgif/vocab-belgif/prod/data/codelist /home/nonroot/impo

COPY --from=temp /home/belgif/vocab-belgif/prod/data/xmlns /home/nonroot/download-ns/

RUN chmod -R 777 /home/nonroot/lucene /home/nonroot/logs /home/nonroot/download-*
RUN chmod -R 777 /home/nonroot/lucene /home/nonroot/store /home/nonroot/logs /home/nonroot/download-*

WORKDIR /home/nonroot

Expand Down

0 comments on commit 9161caa

Please sign in to comment.